Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Preventing multiple instances

by stevieb (Canon)
on Dec 16, 2020 at 22:01 UTC ( #11125307=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sudo mkdir /var/memdir
    
  2. or download this
    tmpfs /var/memdir tmpfs nodev,nosuid,size=1M 0 0
    
  3. or download this
    use warnings;
    use strict;
    ...
    unlink $lock or die "Can't delete the damned lock file $lock: $!";
    
    printf "Exists after delete: %d\n", -e $lock // 0;
    
  4. or download this
    spek@scelia ~/scratch $ perl script.pl
    Exists after create: 1
    Exists after delete: 0
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2021-05-08 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (96 votes). Check out past polls.

    Notices?