how to get PID from subprocess library

TheSaint nobody at nowhere.net.no
Fri May 20 11:19:38 EDT 2011


Miki Tebeka wrote:

> The best module for doing such things is subprocess. And the Popen object
> has a pid attribute

I knew that, it's my fault that I'm not good to manage with popen. I found 
simplier to use subprocess.getstatusoutput. Maybe this function doesn't 
return the child pid, so I should adopt to work with Popen :(

-- 
goto /dev/null



More information about the Python-list mailing list