Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 ( #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
Node Status?
node history
Node Type: note [id://810965]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2019-11-19 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (95 votes). Check out past polls.

    Notices?