top is showing that some python script is using all computer resources
Sadly, I have more that one python scrip being running. How can I identify which file it is being run from?
I obtained PID using top
command
top is showing that some python script is using all computer resources
Sadly, I have more that one python scrip being running. How can I identify which file it is being run from?
I obtained PID using top
command
You can try reading the file named
cmdline
in the directory/proc/<PID>/
. It is a null-joined list of the program and its arguments. Here is an example on my ubuntu for the process handling unattended-upgrades:Would that help you with your problem?