Tag Info

New answers tagged

0

Using FLOM (Free LOck Manager) tool, serializing commands becomes as easy as running flom -- command_to_serialize FLOM allows you to implement more sofisticate use cases (distributed locking, readers/writers, numeric resources, etc...) as explained here: http://sourceforge.net/p/flom/wiki/FLOM%20by%20examples/


1

An easy way is to use lockfile coming usually with the procmail package. LOCKFILE="/tmp/mylockfile.lock" # try once to get the lock else exit lockfile -r 0 "$LOCKFILE" || exit 0 # here the actual job rm -f "$LOCKFILE"



Top 50 recent answers are included