Search within running python scripts

gmax2006 mapsetah2000-maillist5 at yahoo.ca
Mon Jul 24 17:01:02 EDT 2006


Simon Forman wrote:
> gmax2006 wrote:
> > Hi,
> >
> > Is it possible that a python script finds out whether another instance
> > of it is currently running or not?
> >
> > Thank you,
> > Max
>
> Yes, there are several ways.  What OS are you using?
>
> ~Simon

I have to use an os-independent approach.

At this point I use a file as running-flag. It doesn't work so good.
Because if the python application breaks or get terminated, it won't
run again unless somebody deletes the flag file.

Alan




More information about the Python-list mailing list