Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Alan Bennett said:I don't mind people who aren't what they seem. I just wish they'd make their mind up.
Alan Bennett said:I don't mind people who aren't what they seem. I just wish they'd make their mind up.
My_pid=$$
print $My_pid >> temp.file
read input_pid < temp.file
if [[ "$input_pid" == "$My_pid" ]] then
(allow the script to continue)
else
(exit the script, My_pid was not 1st)
fi
lockname=/tmp/myscript.lock
if mkdir "$lockname"
then
echo >&2 "aquired lock; continuing"
# Remove lock directory when script terminates
trap 'rmdir "$lockname"' 0
trap "exit 2" 1 2 3 15
else
echo >&2 "lock already held"
echo >&" "another script instance running?"
exit 1
fi