diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-04-07 17:39:31 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-04-07 17:39:31 -0400 |
commit | 6387e442e8c1c9d06c80363ac172b1daf0afb430 (patch) | |
tree | dd6a3b867f39e8a2ce6d4cbd23b4fc4300edf51d /README.markdown | |
parent | a76371cf30bfd945b75b81a77a02a26a67b7478c (diff) |
add README
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..3bd076c --- /dev/null +++ b/README.markdown @@ -0,0 +1,16 @@ +Lock +==== + +This program creates a lock directory to ensure two programs do no simulaneously execute + +example: + + calvin@barnabas:~/lock$ lock p + calvin@barnabas:~/lock$ lock p && echo 'UNLOCKED' & + [2] 22844 + calvin@barnabas:~/lock$ rmdir p + * two seconds later * + calvin@barnabas:~/lock$ + UNLOCKED + [2]- Done lock p && echo -e '\nUNLOCKED\n' + calvin@barnabas:~/lock$ |