See the highlander script. The basic idea is to flock() your program script. That way, the lock is automatically released once your program ends (or crashes).
In reply to Re: Mechanism for ensuring only one instance of a Perl script can only run?
by Corion
in thread Mechanism for ensuring only one instance of a Perl script can only run?
by redapplesonly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |