in reply to Re^2: Checking for multiple instances
in thread Checking for multiple instances

I can't find my working example right now, but from memory, something like this:
#!/usr/bin/perl use Fcntl qw(LOCK_EX LOCK_NB); flock DATA, LOCK_EX | LOCK_NB or die "Already executing!"; ... rest of code ... # do not remove this __END__! __END__

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^4: Checking for multiple instances
by Your Mother (Archbishop) on Sep 25, 2004 at 06:41 UTC

    Thanks, that's plenty, I'm sure. I was just a'scared there might be a trick to it that was different from vanilla flock'ing.