Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Preventing multiple instances

by perlfan (Vicar)
on Dec 18, 2020 at 17:50 UTC ( #11125419=note: print w/replies, xml ) Need Help??


in reply to Preventing multiple instances

Another solution is to run your script as a daemon so there is alway just a single process running, and it can manage not running over itself internally. It really just comes down to a sleep 120;. Just don't start more than once daemon at a time :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2021-04-11 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?