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

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:
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...




  • perl(App/ = 0.040
  • perl-App-plockf = 0.04-alt1

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] noarch autoimports
      rpm [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


    • /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/