Get the status of a process

Gilles Lenfant nospam.glenfant at bigfoot.com
Fri Nov 28 08:44:30 EST 2003


Michael Hudson wrote:

> 
> os.kill(some_pid, 0)?
> 
> You might get EPERM if the process is running, but as a different
> user.
> 
> Cheers,
> mwh
> 

Many thanks. This does the job (raises an OSError when process is dead)

--
Gilles





More information about the Python-list mailing list