|Perl Monk, Perl Meditation|
Checking for multiple instancesby MarkNo1 (Initiate)
|on Sep 24, 2004 at 17:02 UTC||Need Help??|
MarkNo1 has asked for the
wisdom of the Perl Monks concerning the following question:
I have googeled and searched the monastery in search of an answer to my question but keep coming up with the same answer. I have a bunch of perl scripts which are executed via cron. Occasionally server load gets high enough for one perl script to be already running when it gets executed again by cron.
Without using a lock file that I create myself (which is fraught with problems) I want to be able to check for existing instances of the same perl script. I am _positive_ that there must be a CPAN module that'll help me but I cannot find (a) the right one or (b) any examples of how to use a module to do what I want.
Can anyone help? I appreciate any help you wise old sages can offer.