Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Ensuring only one copy of a perl script is running at a time

by f00li5h (Chaplain)
on Dec 19, 2006 at 10:53 UTC ( #590641=note: print w/replies, xml ) Need Help??


in reply to Ensuring only one copy of a perl script is running at a time

File::Pid may be helpful to you.

Also, merlyn wrote Highlander: one instance at a time (Oct 00). Although it does use flock

I'll skip the ever-so-tempting OS trolling ...

@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://590641]
help
Chatterbox?
and the pool shimmers...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2017-09-25 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (275 votes). Check out past polls.

    Notices?