I had to solve a similar problem once myself:
RFC: A new module to help avoid running multiple instances of the same script (via cron, for example)
Be sure to read the entire thread - my original solution gets improved upon as other monks offer comments and suggestions.
In reply to Re: Check for another running instance of the same program
by scorpio17
in thread Check for another running instance of the same program
by Narveson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |