how to get PID from subprocess library

TheSaint nobody at nowhere.net.no
Thu May 19 12:02:08 EDT 2011


hello,

I'm using to launch a program by subprocess.getstatusoutput. I'd like to 
know whether I can get the program ID, in order to avoid another launch.

For clarity sake, I'm calling aria2 (the download manager for linux) and I 
wouldn't like to call one more instance of it. So what will I use to find 
the PID of the launched program?

-- 
goto /dev/null



More information about the Python-list mailing list