There are times when CRON doesn’t simply fill in the necessary requirements needed for a recurring task. Here’s the problem, let’s say I have a script that should run immediately after it has completed. In other words, a routine. For instance, I’d like to keep the script running without it overlapping with itself. My issue with CRON is that it runs the script again even if the previous execution is still in progress and this is not a good thing as there may be implications to the data due to integrity failure.
I decided to use a bash script to instead run the script. Here’s how I did it:
Though this approach works, I am still unaware of the implications that may occur. As of now, this solves my problem.