how to get PID from subprocess library
GMail Felipe
felipe.vinturini at gmail.com
Sun May 22 11:45:22 EDT 2011
On 22/05/2011, at 10:41, TheSaint <nobody at nowhere.net.no> wrote:
> Kushal Kumaran wrote:
>
>> You could look for a way to make aria2c not become a daemon and use
>> subprocess.Popen to start it. That gives you the PID and ways to see
>> if the process is still running
>
> I see. It's a step that I've to get on my account. Unfortunately I'll have
> to study it some more.
>
> BTW. I removed grep from the command. Python does it with the *in* statement
> :)
>
>
> --
> goto /dev/null
> --
> http://mail.python.org/mailman/listinfo/python-list
Hi,
For the "ps" command, have you seen the psuti module?
The link to it is: http://code.google.com/p/psutil/
Regards,
Felipe.
More information about the Python-list
mailing list