[jump to content][No Software Patents]Tools (new) : lockrun [ Home | Scylla+Charybdis old home | Tools (old) | Tools (new) | FAQ | Downloads ]

Scylla and Charybdis lockrun - Tools

The tools are developed under Linux with ESR's paradigm release early, release often in mind.
So you can consider this beta software, or alpha, or pre-alpha, or even worse ;)

Have a look in the download directory for all downloads.
As always here, all you get is the source. No binaries here.

lockrun 0.5.0-20090727-020420

Exclusively run something by placing a file lock (look into latest version, download latest version 0.5.0-20090727-020420, sig)

This here was done before I got aware of "lckdo" from the debian package "moreutils". It has some different options, though:

Lockrun opens or creates a file, places a lock on the file, and if obtained, runs some other program. If the program terminates, the lock is removed.

If there already is a lock on the file, it waits for the lock to be aquired. With option -n it does not wait for the lock and instead returns false.

With option -u a lockfile can be created which is safely removed after it is no more needed (this option is experimental). To remove a locked file use something like 'lockrun "file" rm -f "file"'.

History:

version 0.5.0-20090727-020420

download (239849 bytes) sig

Option -f added

If this option is present, this makes lockrun fail if the given file to lock is missing.

version 0.4.0-20090227-125233

download (230712 bytes) sig

Option -c, -d and -l added.

With option -l you can redirect logging to some other fd, like in "lockrun -vl42 cmd 42>file".

With options -c and -d you can display a "waiting string" to stdout. If you need it to stderr, try -l2.

version 0.3.0-20081017-210529

download (223949 bytes) sig

Option -a and -e added.

Lockrun now sets the environment variable LOCKRUNPID to the PID of the the lockrun process. If $PPID is in $LOCKRUNPID you can tell that you were forked from lockrun. Options -a and -e can change that behavior.

version 0.2.1-20081016-015640

download (223324 bytes) sig

Bugfix release: Large files are now supported, too

version 0.2.0-20080921-011339

download (221822 bytes) sig

Lockfile unlink added (option -u) Lock wait time added (option -w)

Option -u is very experimental.

[view more history][view complete history]

License and Disclaimer

All you can see here is free software according to the GNU GPL.
Copyright (C)2000-2008 by Valentin Hilbig
Note that the software comes with absolutely no warranty of any kind.
You use the software at your own risk.
Valentin Hilbig cannot be hold responsible for any unintended damage,
lost data or malfunction of the software you can find here.

[FSFE contributor 2007]

[end of page - jump back to content][hacker culture]
Last modified: 2008-12-27 by Valentin Hilbig [ Imprint / Impressum ]