Welcome to the Monastery | |
PerlMonks |
Re: How many scripts running?by Corion (Patriarch) |
on Dec 15, 2019 at 08:37 UTC ( [id://11110171]=note: print w/replies, xml ) | Need Help?? |
If you only want a single instance of your script running, the easiest approach is to lock the script file itself while the script is running. See Highlander for that approach. Of course, the locking needs to be done in the top-level invocation, so the best approach is to have a separate top-level script that gets invoked and that locks itself.
In Section
Seekers of Perl Wisdom
|
|