perl-App-plockf-0.04-alt1.noarch.rpm


Advertisement

Description

perl-App-plockf - execute a command while holding a flock lock

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-App-plockf
Package version 0.04
Package release alt1
Package architecture noarch
Package type rpm
Installed size 13.51 KB
Download size 13.51 KB
Official Mirror ftp.altlinux.org
plockf is a perl port of the FreeBSD utility the lockf(1) manpage.
The plockf utility acquires an exclusive lock on a *file*, creating
it if necessary, and removing the file on exit unless explicitly told
not to. While holding the lock, it executes a *command* with optional
*arguments*. After the *command* completes, plockf releases the
lock, and removes the *file* unless the `-k' option is specified.
BSD-style locking is used, as described in the flock(2) manpage; the mere
existence of the *file* is not considered to constitute a lock.
If the plockf utility is being used to facilitate concurrency
between a number of processes, it is recommended that the `-k' option
be used. This will guarantee lock ordering, as well as implement a
performance enhanced algorithm which minimizes CPU load associated
with concurrent unlink, drop and re-acquire activity. It should be
noted that if the `-k' option is not used, then no guarantees around
lock ordering can be made.
The following options are supported:
=over
=item `-k'
Causes the lock *file* to be kept (not removed) after the command
completes.
=item `-s'
Causes plockf to operate silently. Failure to acquire the lock is
indicated only in the exit status.
=item `-n'
Causes plockf to fail if the specified lock *file* does not exist.
If `-n' is not specified, plockf will create *file* if necessary.
=item `-t *seconds*'
Specifies a timeout for waiting for the lock. By default, plockf
waits indefinitely to acquire the lock. If a timeout is specified with
this option, plockf will wait at most the given number of *seconds*
before giving up. A timeout of 0 may be given, in which case plockf
will fail unless it can acquire the lock immediately. When a lock
times out, *command* is not executed.
Unlike the original the lockf manpage utility, the plockf manpage may handle also
floating point timeouts on systems which implement
`Time::HiRes::alarm'; on Windows systems only integer timeouts are
supported.
=back
In no event will plockf break a lock that is held by...

Alternatives

Package Version Architecture Repository
perl-App-plockf - - -

Requires

Name Value
/usr/bin/perl -
/usr/share/perl5 -
perl(Errno.pm) -
perl(Fcntl.pm) -
perl(File/Basename.pm) -
perl(Getopt/Long.pm) -
perl(constant.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(App/plockf.pm) = 0.040
perl-App-plockf = 0.04-alt1

Download

Type URL
Binary Package perl-App-plockf-0.04-alt1.noarch.rpm
Source Package perl-App-plockf-0.04-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-App-plockf rpm package:
    # sudo apt-get install perl-App-plockf

Files

Path
/usr/bin/plockf
/usr/share/doc/perl-App-plockf-0.04/Changes
/usr/share/doc/perl-App-plockf-0.04/README
/usr/share/man/man1/plockf.1.xz
/usr/share/perl5/App/plockf.pm

See Also

Package Description
perl-App-plstrace-0.06-alt1.noarch.rpm Trace Perl function calls
perl-App-plstrace-scripts-0.06-alt1.noarch.rpm App-plstrace scripts
perl-App-pmdeps-0.02-alt1.noarch.rpm Fetch and show dependencies of CPAN module
perl-App-pmdeps-scripts-0.02-alt1.noarch.rpm App-pmdeps scripts
perl-App-pmdir-0.002-alt1.noarch.rpm returns the directory of a specific Perl module
perl-App-pmdir-scripts-0.002-alt1.noarch.rpm App-pmdir scripts
perl-App-pmodinfo-0.10-alt1.noarch.rpm Perl module info command line
perl-App-pmodinfo-scripts-0.10-alt1.noarch.rpm App-pmodinfo scripts
perl-App-pmpatcher-0.04-alt1.noarch.rpm Apply a set of module patches on your Perl installation
perl-App-pmuninstall-0.30-alt1.noarch.rpm Uninstall modules
perl-App-pmuninstall-scripts-0.30-alt1.noarch.rpm App-pmuninstall scripts
perl-App-pnc-0.02-alt1.noarch.rpm Simple netcat clone implemented in Perl
perl-App-pod2wp-0.004-alt1.noarch.rpm Publish POD document to WordPress as blog post
perl-App-podify-0.03-alt1.noarch.rpm Add POD to your modules
perl-App-podispell-0.001004-alt1.noarch.rpm Interactive Pod spell checker
Advertisement
Advertisement