Using python to check the status of a program

Miki Tebeka miki.tebeka at zoran.com
Sun Dec 28 08:12:29 EST 2003


Hello Jetman,
> > I would like to use a Python script to periodically check to see if a
> > program is still running and if it isn't I want to start it up.  Could
> > someone point me on the right path?  Thanks in advance.
> If we're talking about Windows, then this would work using the 
> Cygwin utils for ps or one could try Pythonwin.  Mark has ported 
> many Windows APIs, so it would be a little more involved, but 
> straight-fwd.  HTH....Jet
There are always the pstools from sysinternals
(http://www.sysinternals.com/ntw2k/freeware/pstools.shtml)

HTH.
Miki




More information about the Python-list mailing list