Re: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Brian Clark
* Nicolas Guilhot ([EMAIL PROTECTED]) [Dec 28. 2001 10:00]: > I was thinking about this solution, but what can I do if the script ends > prematurely. The file will never be deleted ?? It's a nasty hack, but you chould run a separate shell script to check for the existance of the running script,

Re: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Gerard Onorato
Nicolas, You could try something like Anybody has an example of how to use flock ?

Re: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Nicolas Guilhot
I was thinking about this solution, but what can I do if the script ends prematurely. The file will never be deleted ?? Anybody has an example of how to use flock ? Nicolas "Gerard Onorato" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > There may be a much easier method ho

Re: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Andrey Hristov
Under *nix - SysV semaphores HTH Regards, Andrey Hristov - Original Message - From: "Nicolas Guilhot" <[EMAIL PROTECTED]> To: "Php General MailingList" <[EMAIL PROTECTED]> Sent: Friday, December 28, 2001 4:31 PM Subject: [PHP] Only one instance of a scri

Re[2]: [PHP] Only one instance of a script at a time !

2001-12-28 Thread akul
JVU> -Original Message- JVU> From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]] JVU> Sent: Friday, December 28, 2001 3:32 PM JVU> To: Php General MailingList JVU> Subject: [PHP] Only one instance of a script at a time ! JVU> Running a php script with a cron job, how can I

Re: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Gerard Onorato
There may be a much easier method however why not write a file and then check for it's existence on the next execution. Delete the file at the end of execution to clear the way for the next pass. Quick and dirty so probably at least on typo On Fri, 28 Dec 2001 15:31:33 +0100, Nicolas Guilhot

Re: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Julio Nobrega Trabalhando
]] > Sent: Friday, December 28, 2001 3:32 PM > To: Php General MailingList > Subject: [PHP] Only one instance of a script at a time ! > > > Running a php script with a cron job, how can I do to have only one instance > of the script running ? > > Thanks for any answer. >

RE: [PHP] Only one instance of a script at a time !

2001-12-28 Thread Jerry Verhoef (UGBI)
stance of a script at a time ! Running a php script with a cron job, how can I do to have only one instance of the script running ? Thanks for any answer. Nicolas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] Only one instance of a script at a time !

2001-12-28 Thread Nicolas Guilhot
Running a php script with a cron job, how can I do to have only one instance of the script running ? Thanks for any answer. Nicolas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the li