Skip to content

Running a Cron Every 5 Minutes

Covers
Cron

Running a job every 5 minutes is a commonly used cron schedule. In this quick how-to article, you will learn to schedule a cronjob to run every 5 minutes.

Syntax:

Use the following syntax to schedule a command or script to run every 5 minutes using crontab.

Example

To schedule a PHP script to run every 5 minutes. Run the command crontab -e to edit crontab in an editor and schedule your job. You can use crontab -e command to edit the crontab editor:

The cronjob will run the above command at 5-minute intervals.

Running crontab every 5 minutes
Running crontab every 5 minutes

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

Leave a Reply

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


Back to top