Cron is a service that runs tasks at specified intervals in Unix/Linux systems. It’s commonly used for operational tasks like cleaning log files or backing up databases. But for our purposes, we can also use it to automate applications to perform some tasks at regular intervals.

Running a Cron Every 10, 20 or 30 Minutes cron cronjobs crontab General Articles
Schedule Cron Job Every 10 Minutes

In this article, we will see how we can run a job cron job every 10 minutes, 20 minutes, or 30 minutes. Use the following timer options to schedule a job in crontab to run on specified intervals.

  • Running a corn every 10 minutes

    */10  *  *  *  *  /opt/script.sh

  • Running a corn every 20 minutes

    */20  *  *  *  *  /opt/script.sh

  • Running a corn every 30 minutes

    */30  *  *  *  *  /opt/script.sh

The above jobs run at specific intervals.