Proc::Lock::File - lock interface module
use Proc::Lock::File; my $lock = new Proc::Lock::File ( Directory => '/var/locks', ProcessName => 'locker' ); $lock->set () || die "already locked"; die "locked" if $lock->isSet (); $lock->unset ();
Generic lock module. You must subclass this class and overwrite set, clear, isSet and new (possible) for do your work
Construct new file lock object. Add Directory parameter to parent constructor.
To install Proc::Application, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Proc::Application
CPAN shell
perl -MCPAN -e shell install Proc::Application
For more information on module installation, please visit the detailed CPAN module installation guide.