How to Configure Cron Jobs in cPanel

This article describes how to use cPanel to configure cron jobs for your web site. Using cron jobs, you can schedule commands to run at intervals that you specify.


WHAT IS A CRON JOB?

A cron job is simply a task that you schedule to run automatically at specific intervals. For example, if you want to back up a file every six hours, you can set this up easily using cPanel's cron jobs feature.


ADDING A CRON JOB

To add a cron job, follow these steps:

  1. In the Advanced section of the cPanel home screen, click Cron Jobs.
  2. Under Cron Email, type the e-mail address that you want to receive notifications, and then click Update Email. Every time the cron job runs, the e-mail account will receive a message.

Note: If you do not want to receive e-mail notifications for a particular cron job, you can append >/dev/null 2>&1 to the command, which redirects all output to /dev/null.


      3. Under Add New Cron Job, enter the interval for the command that you want. 

Note: If you select an interval option under Common Settings, cPanel fills in the values automatically.


      4. In the Command text box, type the command that you want to run.

      5. Click Add New Cron Job.


EDITING A CRON JOB

To edit a cron job, follow these steps:

  1. In the Advanced section of the cPanel home screen, click Cron jobs.
  2. Under Current Cron Jobs, click Edit for the cron job that you want to edit.
  3. Make the changes that you want, and then click Edit Line.


DELETING A CRON JOB

You can delete a cron job when you no longer want a command to run automatically.

To delete a cron job, follow these steps:

  1. In the Advanced section of the cPanel home screen, click Cron jobs.
  2. Under Current Cron Jobs, click Delete for the cron job that you want to delete.
  3. Confirm that the cron job is the one that you want to delete, and then click Delete.
  • cpanel, cron, cron jobs
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I access my CPanel

Every Inspedium Web Hosting Plan comes with CPanel as the hosting control panel. You can access...

How do I update my contact information in CPanel?

To update your contact information in cPanel, you can use the Update Contact Information feature...

How do I change the language of my CPanel?

You can use the Change Language feature to change the default display language of your CPanel...

How to Log in and Log out of cPanel

This article describes how to log in and log out of cPanel. LOGGING IN TO CPANEL To log in to...

Getting familiar with the cPanel Home Screen

This article is an introduction to the cPanel home screen, which is the place to start for...

Powered by WHMCompleteSolution