Child pages
  • Cron Jobs
Skip to end of metadata
Go to start of metadata

For cPanel & WHM 11.48

(Home >> Advanced >> Cron Jobs)

 

Overview

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 that the server executes from a script file. 

Note:

Be careful when you schedule cron jobs. If you set them to run too often, they may slow down your server.

Add a cron email

The Cron Email section of this interface allows you to specify an email address at which you wish to receive notifications whenever your cron jobs run. To specify an email address, perform the following steps:

  1. In the Email text box, enter the email address at which you wish to receive the notifications.
  2. Click Update Email.

Add a cron job

To set up a cron job, perform the following steps:

  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. You will not need to specify settings for the minute, hour, day, and month.
    • Minute — Use this menu to select 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 — Use this menu to select 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 — Use this menu to select 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 — Use this menu to select 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 — Use this menu to select the days of the week on which you wish to run the cron job.
  2. In the Command text box, enter the command that you wish the system to run.

    Note

     If you do not wish to receive an email to notify you of a specific cron job, add the following line to the command:

  3. Click Add New Cron Job.

View existing cron jobs

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

You can use this table to edit or delete a cron job.

Edit a cron job

To edit a cron job, perform the following steps:

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

Delete a cron job

To delete a cron job, perform the following steps:

  1. Locate the cron job that you wish to delete.
  2. Click Delete.
  3. To confirm that you wish to delete the cron job, click Delete again.

  • No labels