All Questions
2
questions
0
votes
0
answers
1k
views
how do I get the PID list and USERNAME of each of those PIDs in LINUX using python?
I am trying to get the PID's and their respective usernames for displaying something similar to the top command in linux. I managed to get the list of PIDs but I am unable to fetch any username for ...
8
votes
1
answer
14k
views
How do I determine the PID of my python program if there is more then one python program running?
I have two python programs running on my system, say they are called program x and program y.
I want to get the pid of program y, but not x for my bash script. When using pgrep python, I get the pid ...