Perl: the Markov chain saw | |
PerlMonks |
Re: Preventing multiple instancesby perlfan (Vicar) |
on Dec 18, 2020 at 17:50 UTC ( [id://11125419]=note: print w/replies, xml ) | Need Help?? |
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 :)
In Section
Seekers of Perl Wisdom
|
|