-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a library function which help to get linux process and kill those process #5932
base: master
Are you sure you want to change the base?
Conversation
… name Added a library function which retruns linux process based on process name Signed-off-by: Praveen K Pandey <[email protected]>
89c1462
to
23559ab
Compare
added a library function which help to kill linuxprocess Signed-off-by: Praveen K Pandey <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @PraveenPenguin, thank you for your contribution. I have a question about psutil
please have a look.
@@ -24,6 +24,7 @@ | |||
""" | |||
|
|||
import os | |||
import psutil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see that you are adding psutil
as requirement for this utility which is new requirement for Avocado. Unfortunately, right now we don't have a way how to add utils specific requirements. Is it possible for you to do this without psutil
?
PS: Right now we are working on autils project which should merge avocado and avocado-vt utils together and there we should be able to add utils specific requirement. Unfortunately, this project is not prepared yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@richtja I tried, but we need to grep
or awk in ps command that seems not good way, please suggest if you have anything in mind
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PraveenPenguin it looks like you're after the process name. That should be available under /proc/$PID/comm
. Let me know if there's other info you're after.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clebergnu it is a reverse way , I am looking process id having input as process name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @PraveenPenguin it looks like this data can be obtained without the psutil
library. Please refer to my other comment.
@clebergnu any thoughts on this ? |
No description provided.