How To Add Cron Jobs in cPanel

Creating cron jobs make it easier to automate common tasks that can be scheduled to run by the system. In most cases, a cron job is benefical when you need to run simple tasks from a script. Many website owners utilize cron jobs to save time and automate tasks.

Create A Cron Job In cPanel

Step 1. Log into cPanel

Step 2. Select Cron Jobs from the Advanced Section

Step 3. Scroll down the page to common settings and select the frequency and duration for your cron jobs. The drop down menu has prefilled settings to choose from.

  • Common Settings — Select a commonly-used interval from this drop down menu to configure the settings in the Minute, Hour, Day, Month, and Weekday text boxes.
  • Minute — The number of minutes between each time the cron job runs, or the minute of each hour on which you wish to run the cron job.
  • Hour — The number of hours between each time the cron job runs, or the hour of each day on which you wish to run the cron job.
  • Day — The number of days between each time the cron job runs, or the day of the month on which you wish to run the cron job.
  • Month — The number of months between each time the cron job runs, or the month of the year in which you wish to run the cron job.
  • Weekday — The days of the week on which you wish to run the cron job.

Step 4. Enter the command you would like to run in the command field

Step 5. Click Add New Cron Job

Step 6. You will then see a confirmation on the screen confirming that the job has been added

In the Command text box, add  /dev/null 2>&1  to the end of your cron job line to disable email notifications

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Banning Traffic to Your Site

When you have a web site you want to bring in as much traffic as possible. But sometimes you...

cPanel Definitions of the Stats Panel

The Statistics panel in cPanel is a collection of various stats from your cPanel account. This...

Creating an Addon Domain

By creating an addon domain, you can control multiple domains from a single account. This allows...

Database Backups using a cron job

This guide is about creating a cron job in cPanel to make a backup of your databases. This...

Definition of Advanced Icons

The Advanced section in cPanel allows users to setup and manage more advanced functionality for...