Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2016-08-30 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (418 votes). Check out past polls.