Alternative to CRON in Linux

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.

More info: http://linuxconfig.org/Bash_scripting_Tutorial

Let the others know about this Rant
  • Print
  • Facebook
  • Twitter
  • LinkedIn
  • Plurk

About Christian Noel

Hi, I'm Cris! I'm interested in anime, programming and photography. My profession is programming and am mostly focused in web development. I've been programming since College. What inspired me to go to programming was because I was so into the gaming industry and I wanted to create my own game.
This entry was posted in Techy Thoughts and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *