Making sure script only runs once instance at a time.
Tim Williams
tim at tdw.net
Fri Sep 29 13:21:57 EDT 2006
On 29 Sep 2006 10:04:15 -0700, Paul Rubin
<"http://phr.cx"@nospam.invalid> wrote:
> "Tim Williams" <tim at tdw.net> writes:
> > That's the same kind of principle as my posted snippet, it doesn't
> > rely on the file's presence or absence as such. It only cares when
> > the file exists *and* is held open by another process. When the
> > process exits, the lock ends without needing to clean up.
> >
> > It works on Windows, but that doesn't help the OP :)
>
> Huh? Fcntl is on linux.
No, my snippet does LOL :)
More information about the Python-list
mailing list