[Tutor] Python equivalent of kill -0 PID

2012-04-26 Thread Sean Carolan
In bash you can do this to see if a process is running: [scarolan@kurobox:~/bin]$ kill -0 24275 [scarolan@kurobox:~/bin]$ echo $? 0 Is there a python equivalent? I tried using os.kill() but did not see any way to capture the output. ___ Tutor maillist

Re: [Tutor] Python equivalent of kill -0 PID

2012-04-26 Thread Joel Goldstick
On Thu, Apr 26, 2012 at 3:24 PM, Sean Carolan scaro...@gmail.com wrote: In bash you can do this to see if a process is running: [scarolan@kurobox:~/bin]$ kill -0 24275 [scarolan@kurobox:~/bin]$ echo $? 0 Is there a python equivalent?  I tried using os.kill() but did not see any way to

Re: [Tutor] Python equivalent of kill -0 PID

2012-04-26 Thread Martin Walsh
On 04/26/2012 02:24 PM, Sean Carolan wrote: In bash you can do this to see if a process is running: [scarolan@kurobox:~/bin]$ kill -0 24275 [scarolan@kurobox:~/bin]$ echo $? 0 Is there a python equivalent? I tried using os.kill() but did not see any way to capture the output. You might