I want to make a sh script that will only run at most once at any point.
Say, if I exec the script then I go to exec the script again, how do I make it so that if the f
Write the process id into a file and then when a new instance starts, check the file to see if the old instance is still running.