Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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;


Comment on Re: Ensuring only one copy of a perl script is running at a time
Select or Download Code

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 contemplating the Monastery: (7)
As of 2015-07-31 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls