Up Prev Next
From: "Wechsler, Steven M" <WechslerSM at bernstein dot com>
Subject: RE: Process on NT
Date: Mar 24 1999 10:03PM
If you're trying to prevent the same script from running more than once, I
use a non-blocking flock() to attempt to lock a file; if the script is
unable to lock it, it means that it's already running. It's well documented
in the Camel book.
Steve Wechsler/Senior DB Administrator/Sanford C. Bernstein & Co.
"Never underestimate the power of human stupidity" - Lazarus Long
Support the Anti-SPAM amendment: http://www.cauce.org
> -----Original Message-----
> From: Khait, Yuri [mailto:yurkhait@Mobility.com]
> Sent: Wednesday, March 24, 1999 4:24 PM
> To: SybPerl Discussion List
> Subject: Process on NT
> I'm running Perl script on NT.
> Is there a way to find out that similar process is running ?