|File Search||Catalog||Content Search|
The halockrun program provides a simple and reliable way to implement a locking in shell scripts. A typical usage for halockrun is to prevent cronjobs to run simultanously. halockrun uses a lock on a file via fcntl(2) which ensures the release of the lock even if the process gets killed via SIGKILL.
The hatimerun program provides a time-out mechanism which can be used from shell scripts.
HA-Tools - High Availability Toolkid for shell scripting Table of Contents ================= 1. Installation 2. Obtaining HA-Tools 3. How to report bugs 4. Copyright 1. Installation --------------- See the INSTALL file for detailed instructions. In most cases the following steps should do the installation: # ./configure # make # make install 2. Obtaining HA-Tools -------------------- more»
V2.00/18-Aug-2007: * More clearly defined the return values of hatimerun. * added to -E option to halockrun so that a distinction between locking problems and other errors is possible.
halockrun(1) HA-Tools halockrun(1) NAME halockrun - Run command while hold exclusive lock on file. SYNOPSIS halockrun [-ancf] [-e exitcode] [-E nexitcode] lockfile com‐ mand [args] halockrun -t [-c] [-e exitcode] [-E nexitcode] lockfile DESCRIPTION Executes the given command with the given args while holding an more»
hatimerun(1) HA-Tools hatimerun(1) NAME hatimerun - Run more»
V2.00/18-Aug-2007: * More clearly defined the return values of hatimerun. * added -E option to more»
The HA-Tools were written by Markus Winand <email@example.com>
GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Softw more»