Cron Jobs

  • Applies To: All Services
  • Difficulty: Easy
  • Time Needed: 5 Minutes
  • Tools Needed: None
  • Reading Time: 0:05 min

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 a standard and an advanced tool for setting up cron jobs.

Both methods will require you to enter an email address if you want the cron job to email you results every time it runs.

Standard Interface

In this interface, the automation can be defined by entering a command into the appropriate box and using the lists to define how often the command should be run.

To set up a cron job using the standard interface:

  1. If you want the results of the cron job emailed to you, enter an email address in the text box.
  2. Next to Command to run, type the command you'd like to execute.
  3. Enter the minute, hour, day, month, and weekday you'd like the cron job to run.
  4. Click Save Crontab.

To return to the default settings at any time, click Reset Changes.

Advanced Interface

In the advanced interface, the schedule times are not pre-configured and must be defined using a series of text boxes. To set up a cron job using the advanced interface:

  1. If you want the results of the cron job emailed to you, enter an email address in the text box.
  2. Enter the minute, hour, day, month, and weekday you'd like the cron job to run.
    • Asterisk (*) stands for every instance of a given category (such as every day or every minute).
    • Use 24-hour time to specify the hour.
    • Under day, enter the day of the month.
    • Under month, enter a number from 1 to 12. (1 means January and 12 means December.)
    • Under weekday, enter a number from 0 to 6. (0 means Sunday and 6 means Saturday.)
  3. Under Command, type the command you'd like to execute.
  4. Click Commit Changes.

To return to the default settings at any time, click Reset Changes.

Save. Share. Submit.

Related Articles

Sorry, no related entries exist for this article.

Hide Sidebar