No more then 1 Instance of Application..

Christoph Haas email at christoph-haas.de
Mon Mar 13 19:57:50 CET 2006


On Monday 13 March 2006 18:31, Math wrote:
> Does anybody know what I have to do to run only 1 instance of my Python
> Application?
> How do I check if I'm running more instances of a Application?

I would use lockfiles for that purpose. Like this:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/193488

I'm surprised that this is not in the standard library.

If you are not familiar with lockfiles: 
http://en.wikipedia.org/wiki/File_locking

Kindly
 Christoph
-- 
~
~
".signature" [Modified] 1 line --100%--                1,48         All



More information about the Python-list mailing list