Portal Home > Knowledgebase > Advanced Questions > Cron Jobs


Cron Jobs




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.

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

 

  • The Standard Interface
  • The Advanced Interface

The 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.
    • You can click Delete to start over.
  4. Click Save Crontab.

 

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

The 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.


Was this answer helpful?

Print this Article Print this Article

Also Read
Network Tools (Views: 1010)
Image Manager (Views: 1094)
MIME Types (Views: 1064)
Index Manager (Views: 1089)

Powered by WHMCompleteSolution

Language: