RE: Check if another script running

2004-04-02 Thread Jayakumar Rajagopal
-Original Message- From: Mike Blezien [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 3:16 PM To: Perl List Subject: Check if another script running Hello, I need to setup a cronjob to run a script every 2hrs, but if another particular script(executed via a standard web form

Re: Check if another script running

2004-04-02 Thread Mike Blezien
PROTECTED] Sent: Thursday, April 01, 2004 3:16 PM To: Perl List Subject: Check if another script running Hello, I need to setup a cronjob to run a script every 2hrs, but if another particular script(executed via a standard web form), on the same machine, is being executed, I want the cron script wait

Check if another script running

2004-04-01 Thread Mike Blezien
Hello, I need to setup a cronjob to run a script every 2hrs, but if another particular script(executed via a standard web form), on the same machine, is being executed, I want the cron script wait or sleep(); till the other script is finished. Is this possible to do and how is the best way to

Check if another script running

2004-04-01 Thread Mike Blezien
Hello, I need to setup a cronjob to run a script every 2hrs, but if another particular script(executed via a standard web form), on the same machine, is being executed, I want the cron script wait or sleep(); till the other script is finished. Is this possible to do and how is the best way to

RE: Check if another script running

2004-04-01 Thread Jayakumar Rajagopal
did not check the stuff... *** Jay -Original Message- From: Mike Blezien [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 3:47 PM To: Perl List Subject: Check if another script running Hello, I need to setup a cronjob to run a script every 2hrs, but if another particular script

Re: Check if another script running

2004-04-01 Thread Mike Blezien
Hi Randy, that was my original plan, but I though there maybe a better way others may use or suggest :) Appreciate the feedback, Mike Randy W. Sims wrote: On 4/1/2004 3:46 PM, Mike Blezien wrote: Hello, I need to setup a cronjob to run a script every 2hrs, but if another particular

RE: Check if another script running

2004-04-01 Thread Jayakumar Rajagopal
sorry.. I missed one thing.. This is the right condition line: ps -ef | grep $0 | grep -v $$ | grep -v grep | grep $0 -Original Message- From: Jayakumar Rajagopal Sent: Thursday, April 01, 2004 5:30 PM To: [EMAIL PROTECTED]; Perl List Subject: RE: Check if another script running I

Re: Check if another script running

2004-04-01 Thread Randy W. Sims
On 4/1/2004 3:46 PM, Mike Blezien wrote: Hello, I need to setup a cronjob to run a script every 2hrs, but if another particular script(executed via a standard web form), on the same machine, is being executed, I want the cron script wait or sleep(); till the other script is finished. Is this

Check if another script running

2004-04-01 Thread Mike Blezien
Hello, I need to setup a cronjob to run a script every 2hrs, but if another particular script(executed via a standard web form), on the same machine, is being executed, I want the cron script wait or sleep(); till the other script is finished. Is this possible to do and how is the best way to

Re: Check if another script running

2004-04-01 Thread Smoot Carl-Mitchell
On Thu, 01 Apr 2004 16:34:11 -0600 Mike Blezien [EMAIL PROTECTED] wrote: that was my original plan, but I though there maybe a better way others may use or suggest :) Appreciate the feedback, If you are running this on a Unix/Linux system check out perldoc -f flock. It enables advisory file