Re: [PHP] exclusive execution

2001-04-27 Thread Nikhil Goyal
ok i got getmypid() Extending the same concept, is it possible for ANOTHER script to check whether this script has completed execution or is still running? N "John Donagher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > One solution would be to have the s

Re: [PHP] exclusive execution

2001-04-27 Thread Nikhil Goyal
sounds like a good idea. how to I get the process id? "John Donagher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > One solution would be to have the script write it's process ID in some .pid > file. Since a process ID is per instance of the script, this sh

Re: [PHP] exclusive execution

2001-04-27 Thread John Donagher
One solution would be to have the script write it's process ID in some .pid file. Since a process ID is per instance of the script, this should provide you with the functionality you're looking for. John On Fri, 27 Apr 2001, Nikhil Goyal wrote: > I need to set up a script such that only one in

[PHP] exclusive execution

2001-04-27 Thread Nikhil Goyal
I need to set up a script such that only one instance of it is running at a time i.e. in case the script is already executing, it will not be started again. My problem is on a script taking a long time to execute (like it should) - I find that for some reason the script stops somewhere in the mid