Re: check instace already running...
- From: "Fabio Pliger" <fabio.pliger@xxxxxxxx>
- Date: Sun, 10 Apr 2005 14:10:31 GMT
"Aldric L'Hernault" <aldric.lhernault@xxxxxxxxxxx^W> ha scritto nel
messaggio news:42590357$0$28646$636a15ce@xxxxxxxxxxxxxxx
> Sidharth Kuruvila a écrit :
> > I haven't tested this. There is probably a better way of doing this
> > looking at process information. I use a lock file to mark that the
> > program is already running. The problem is that for an abrupt shutdown
> > the file might not be removed.
>
> To enhance your check, just write the PID into the file.
> On startup, if file exists, you may check that the process
> who has written it is still alive.
>
> Aldric L.
Yeah, but how can i retrieve my PID number?And how do i check if the process
who has written the file is still alive?If there a way to have the list of
the precesses running?
.
- References:
- check instace already running...
- From: Fabio Pliger
- Re: check instace already running...
- From: Sidharth Kuruvila
- Re: check instace already running...
- From: Aldric L'Hernault
- check instace already running...
- Prev by Date: Re: Thoughts on some stdlib modules
- Next by Date: UselessPython 2.0
- Previous by thread: Re: check instace already running...
- Next by thread: Re: check instace already running...
- Index(es):