Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Scheduling Perl Tasksby marioroy (Prior) |
on Mar 24, 2017 at 08:30 UTC ( [id://1185729]=note: print w/replies, xml ) | Need Help?? |
Greetings. The project is completed including a release on CPAN. To ensure a given script is executing once, the following is how to do it using Mutex. That will block until obtaining an exclusive lock. A false value is returned if the timeout is reached, and a true value otherwise.
Regards, Mario Edit: Updated the CPAN link to point to the 1.001 release.
In Section
Seekers of Perl Wisdom
|
|