Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Preventing a script from running if it's already running

by edimusrex (Monk)
on Feb 16, 2016 at 20:36 UTC ( #1155394=perlquestion: print w/replies, xml ) Need Help??
edimusrex has asked for the wisdom of the Perl Monks concerning the following question:

I am searching for a simple way to prevent a script from running if it's already running. In python I've used singleton from the tendo package, is there a similar module for Perl? I was looking into Class::Singleton but am not 100% sure if that's what I should be exploring.

Advice would be greatly appreciated

  • Comment on Preventing a script from running if it's already running

Replies are listed 'Best First'.
Re: Preventing a script from running if it's already running
by Your Mother (Chancellor) on Feb 16, 2016 at 20:41 UTC

      Excellent, I will read up on it.

      Thanks

Re: Preventing a script from running if it's already running
by Mr. Muskrat (Canon) on Feb 16, 2016 at 21:07 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1155394]
Approved by Discipulus
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2017-12-14 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (408 votes). Check out past polls.

    Notices?