Last active
October 11, 2015 22:27
-
-
Save ryandotsmith/3928687 to your computer and use it in GitHub Desktop.
Locking using LOCKFILE(1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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