Instantly share code, notes, and snippets.

@ryandotsmith ryandotsmith/
Last active Oct 11, 2015

What would you like to do?
Locking using LOCKFILE(1)
export t=$(date +%s)
lockfile $t #create lock. Try running `lockfile $t` in another shell.
rm -f $t #delete lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment