Showing posts with label lock. Show all posts
Showing posts with label lock. Show all posts

Thursday, July 10, 2014

flock - Manage locks from shell scripts

Only one running instance of a script:

flock -n /var/lock/lock_file.lock script.sh