Open Mte90 opened 1 week ago
So can be handy to be able to run the script just once and not multiple times together.
I am thinking like a statement that you put on top of the bash script file with a bash code like this:
LOCK_FILE=/tmp/$scriptfilename.lock if [ -f "$LOCK_FILE" ]; then echo "Script is already running" exit fi
So can be handy to be able to run the script just once and not multiple times together.
I am thinking like a statement that you put on top of the bash script file with a bash code like this: