in reply to Mechanism for ensuring only one instance of a Perl script can only run?
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mechanism for ensuring only one instance of a Perl script can only run?
by redapplesonly (Sexton) on Dec 02, 2022 at 17:04 UTC | |
by Corion (Patriarch) on Dec 02, 2022 at 17:43 UTC |