I have a script that runs every 15 minutes but sometimes if the box is busy it hangs and the next process will start before the first one is finished creating a snowball effect. How can I add a couple lines to the bash script to check to see if something is running first before starting?
Share
In lieu of pidfiles, as long as your script has a uniquely identifiable name you can do something like this: