How do I force a single instance of a python app?
piet at cs.uu.nl
piet at cs.uu.nl
Wed Oct 25 10:11:36 EDT 2000
More information about the Python-list mailing list
Wed Oct 25 10:11:36 EDT 2000
- Previous message (by thread): How do I force a single instance of a python app?
- Next message (by thread): How do I force a single instance of a python app?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>>>> "Martijn van der Kooij" <fakeadress at microsoft.com> (MvdK) writes: MvdK> If you keep a file opened and only close it when your app is ready MvdK> the file can not be opened a second time, this way you are sure there MvdK> is an other app running if you can not create the file, otherwise as MvdK> soon as you create a lock file (and keep it open) you are sure this MvdK> is the only instance. (This works at least at Windows) But not on Unix. On Unix another app can ope the file, unless the file is explicitely locked (on some Unixes). And different Unixes have different ways of locking. -- Piet van Oostrum <piet at cs.uu.nl> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.van.Oostrum at hccnet.nl
- Previous message (by thread): How do I force a single instance of a python app?
- Next message (by thread): How do I force a single instance of a python app?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list