[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.3.0-20081017-210529

Exclusively run something by placing a file lock (look into latest version, download latest version 0.3.0-20081017-210529, sig)

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

version 0.1.0-20080921-012322

download (219073 bytes) sig

Shared lock added (option -s)

version 0.0.0-20080819-022131

download (218850 bytes) sig

A very first version, it works.

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 ]