![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re^2: Mechanism for ensuring only one instance of a Perl script can only run?by redapplesonly (Sexton) |
on Dec 02, 2022 at 17:04 UTC ( #11148506=note: print w/replies, xml ) | Need Help?? |
Thanks Corion! So one caveat I have is that if a newly-executed script realizes that there's another instance already at work, I want the new script to terminate immediately, not enter a queue to run later. It looks like flock() doesn't offer a "terminate immediately" option... or am I missing the bigger picture. Thank you so much for writing.
In Section
Seekers of Perl Wisdom
|
|