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

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

by benizi (Hermit)
on Dec 20, 2006 at 00:21 UTC ( [id://590826]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    create table foolock (
     /* since we're exclusive per-program, make program primary */
    ...
     client varchar(255) not null,
     time timestamp
    );
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    } else {
        # take appropriate action
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found