rhesa has asked for the wisdom of the Perl Monks concerning the following question:
Is there a better alternative for Proc::PID::File that will gracefully handle reboots *and* running out of disk space?
I want to be certain only one job runs at a time, even if I'm not managing my disk space properly :)
Update: obviously, a code snippet is in order (sorry, grep):
#!/usr/bin/perl use Proc::PID::File; die "Already running!" if Proc::PID::File->running; # rest of script follows
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Whoa! looking for a better pidfile module
by grep (Monsignor) on Dec 14, 2006 at 01:55 UTC | |
by rhesa (Vicar) on Dec 14, 2006 at 02:13 UTC | |
by McDarren (Abbot) on Dec 14, 2006 at 05:15 UTC | |
|
Re: Whoa! looking for a better pidfile module
by merlyn (Sage) on Dec 14, 2006 at 04:51 UTC |