Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: RFC: A new module to help avoid running multiple instances of the same script (via cron, for example)

by scorpio17 (Canon)
on Dec 03, 2009 at 22:07 UTC ( [id://810965]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package HighLander;
    use strict;
    ...
    }
    
    1;
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    # if this script is already running, you'll never make it this far... 
    print "Running...\n";
    sleep 10;
    
  3. or download this
    if ($! == ($^O =~ /Win32/ ? 33 : EWOULDBLOCK)) {
    
  4. or download this
    use Highlander qw( :verbose );
    
  5. or download this
    ...
    
    ...
    }
    
    ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://810965]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found