Knowledgebase

Cron Jobs

For cPanel version 11.32

Cron jobs are scheduled tasks that take place at predefined times or intervals on the server. Often, a cron job is a series of simple tasks executed from a script file. cPanel offers this screen as a tool for setting up cron jobs.

Note: Be careful when scheduling cron jobs. Setting them to run too often may slow down your server.

1. Adding a CRON Email

The Cron Email section of this interface allows you to specify an email address at which you would like to receive notifications whenever your cron jobs are run. To specify an email address:

 

  1. Enter the email address at which you wish to receive the notifications in the email field.
  2. Click the Update Email button.

2. Adding a CRON Job

To set up a cron job:

  1. Configure the interval at which you wish to run the cron job.
    • Common Settings — This menu allows you to select a commonly used interval without having to specify settings for the minute, hour, day, month, and so on.
    • Minute — Use this drop-down menu to select the number of minutes between running the cron job, or the minute each hour on which you wish to run the cron job.
    • Hour — Use this drop-down menu to select the number of hours between running the cron job, or the hour each day on which you wish to run the cron job.
    • Day — Use this drop-down menu to select the number of days between running the cron job, or the day of the month on which you wish to run the cron job.
    • Month — Use this drop-down menu to select the number of months between running the cron job, or the month of the year in which you wish to run the cron job.
    • Weekday — Use this drop-down menu to select the day(s) of the week on which you wish to run the cron job.
  2. In the Command field, type the command you wish the system to run.
    • Note: If you do not wish to receive an email notifying you of a specific cron job, add the following line to the command: >/dev/null 2>&1
  3. Click Add New Cron Job.

3. View Existing CRON Jobs

The Current Cron Jobs table displays the cron jobs you have already set up on the server.

From here, you may edit or delete a cron job.

4. Editing a CRON Job

To edit a cron job:

  1. Locate the cron job you wish to edit.
  2. Click Edit.
  3. Edit the settings you wish to change.
  4. Click Edit Line.

5. Deleting a CRON Job

To delete a cron job:

  1. Locate the cron job you wish to delete.
  2. Click Delete.
  3. Confirm that you wish to delete the cron job by clicking Delete again.
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Accessing cPanel

To access cPanel: Type: http://www.yourwebsite.com.au/cpanel into your preferred Internet...

The cPanel Home Screen

For cPanel version 11.32 The cPanel home screen provides access to all of your cPanel functions....

The Getting Started Wizard

For cPanel version 11.32 Once you have logged in, the start-up wizard is presented. This wizard...

Video Tutorials

For cPanel version 11.32 Clicking this icon will open a web page where various video tutorials...

Accessing Webmail

For cPanel version 11.32 To access webmail: Type: http://www.yourwebsite.com.au/webmail into...