Class::Usul::Lock - Command line access to the IPC::SRLock methods
use Class::Usul::Lock; my $app = Class::Usul::Lock->new_with_options( appclass => 'YourApp' ); $app->quiet( 1 ); exit $app->run;
Command line access to the IPC::SRLock methods
Defines the following attributes;
String which is the key used to set/reset a lock. Set from the command line with the k switch
k
Integer which is the process id associated with a lock. Defaults to $PID. Set from the command line with the p switch
$PID
p
Integer which is the timeout in seconds before a lock is declared stale. Defaults to five minutes. Set from the command line with the t switch
t
Output is comma separated
Resets the lock keyed by the lock_key attribute
lock_key
Set the lock keyed by the lock_key attribute. Optionally use the lock_pid and lock_timeout attributes
lock_pid
lock_timeout
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2018 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install Class::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Usul
CPAN shell
perl -MCPAN -e shell install Class::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.