Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5978
| References | <ir3eu1$kgq$1@speranza.aioe.org> <mailman.1872.1305955023.9059.python-list@python.org> <ir8cfj$2s4$1@speranza.aioe.org> <mailman.1912.1306058670.9059.python-list@python.org> <irb3qv$bkm$1@speranza.aioe.org> |
|---|---|
| From | GMail Felipe <felipe.vinturini@gmail.com> |
| Subject | Re: how to get PID from subprocess library |
| Date | 2011-05-22 12:45 -0300 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1917.1306079058.9059.python-list@python.org> (permalink) |
On 22/05/2011, at 10:41, TheSaint <nobody@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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to get PID from subprocess library TheSaint <nobody@nowhere.net.no> - 2011-05-20 00:02 +0800
Re: how to get PID from subprocess library Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2011-05-21 10:46 +0530
Re: how to get PID from subprocess library TheSaint <nobody@nowhere.net.no> - 2011-05-21 20:50 +0800
Re: how to get PID from subprocess library Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2011-05-22 15:34 +0530
Re: how to get PID from subprocess library TheSaint <nobody@nowhere.net.no> - 2011-05-22 21:41 +0800
Re: how to get PID from subprocess library GMail Felipe <felipe.vinturini@gmail.com> - 2011-05-22 12:45 -0300
Re: how to get PID from subprocess library TheSaint <nobody@nowhere.net.no> - 2011-05-23 19:06 +0800
Re: how to get PID from subprocess library Anssi Saari <as@sci.fi> - 2011-05-24 13:45 +0300
Re: how to get PID from subprocess library TheSaint <nobody@nowhere.net.no> - 2011-05-24 21:36 +0800
csiph-web