Using python to check the status of a program

John J. Lee jjl at pobox.com
Sat Dec 27 07:15:19 EST 2003


Kamuela Franco <kamuelaf at verizon.net> writes:

> 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.

Search the ASPN Python Cookbook for "watchdog" -- I remember a recipe
there (search c.l.py with Google Groups too, of course).


John




More information about the Python-list mailing list