OS independent way to check if a python app is running?

python at bdurham.com python at bdurham.com
Mon Dec 14 14:14:05 EST 2009


Is there an os independent way to check if a python app is
running?

Goal: I have a server program based on cherrypy that I only want
to have running once. If a system administrator accidentally
attempts to run this program more than once, I would like the 2nd
instance of the program to detect that its already running and
exit.

Thank you,
Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091214/239d3218/attachment.html>


More information about the Python-list mailing list