Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by eyepopslikeamosquito (Canon)
on Dec 19, 2006 at 07:49 UTC ( #590619=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    __DATA__
    This exists so flock() code above works.
    DO NOT REMOVE THIS DATA SECTION.
    
  2. or download this
    use strict;
    use warnings;
    ...
    print "end of program\n";
    # Note: lock should be automatically released at end of program,
    # no matter how the process is terminated.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://590619]
Approved by chargrill
Front-paged by andyford
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-08-30 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls