I have an existing linux shell script that is running every so many hours.
Basically the script itself takes about 1.5 hours to complete. But there can be certain situations where it can take longer. Rather than spacing the script out further between runs I want to only handle that situation. Where if script time executes and there is a previous run still running the new one will just exit and let the previous one finish.
So - I want to add some smarts to the script that if it see's a particular process running (tape.sh) that it will exit the script without doing anything further. If process isnt found it continues on with rest of script. Please assist.