in reply to use flock() to determine if other script is running
my $file = 'c:\temp\running.tmp'; open(RUNNING, ">$file"); close(RUNNING); ##Do your stuff unlink($file);
my $file = 'c:\temp\running.tmp';' if(-e $file){ print "Running\n"; }else{ print "Not Running\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: use flock() to determine if other script is running
by merlyn (Sage) on Aug 21, 2003 at 00:30 UTC | |
by tcf22 (Priest) on Aug 21, 2003 at 06:46 UTC | |
by Red_Dragon (Beadle) on Aug 21, 2003 at 15:32 UTC | |
|
Re: Re: use flock() to determine if other script is running
by Red_Dragon (Beadle) on Aug 21, 2003 at 15:31 UTC |