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


No comments: