Keep It Simple, Stupid | |
PerlMonks |
Re: Mechanism for ensuring only one instance of a Perl script can only run?by LanX (Saint) |
on Dec 02, 2022 at 16:29 UTC ( [id://11148501]=note: print w/replies, xml ) | Need Help?? |
Perl has flock command for this kind of problems. This recent discussion might be of interest: File lock demo please be aware that this also depends on the OS, I've tested it on Win. (you havent been explicitly telling us which one you use, but crontab is usually more *nix'ish)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|