Bash Scripting – How to add a lockfile
In Linux adding a lock file to a bash script I would say is a must. To often does the simplest of things turn into a major issue. A very basic way of adding a lockfile to your bash script is like this. #!/bin/bash – LOCK_FILE=”/tmp/iama.lockfile” if [ ! -e $LOCK_FILE ]; then touch $LOCK_FILE #Add some command …
Read More Bash Scripting – How to add a lockfile