This tutorial covers the following topics:
A cron job allows you to run a certain command at times set by the job. For example, you could set a cron job to delete temporary files every week so that your disk space is not being used up by those files. To access the Cron Jobs tool, click on the corresponding icon located in the Advanced section on the main screen of your cPanel interface.
Adding a cron job
You can choose to receive an email each time a cron job runs a command by placing your email address in the Email field in the tool page. If you do not want to receive an email for each cron job, use the following command to redirect the cron job’s output to /dev/null:
your_command_here >/dev/null 2>&1
Next, select how often you wish the command to be run by selecting an option in each of the boxes or by selecting a predefined period from the Common Settings drop-down menu.
Then, add the command that you would like to be executed in the Command field and press the Add New Cron Job button.
Deleting a cron job
When a cron job is no longer needed, you should delete it so the command will not continue to run. To perform the removal, click the Delete button next to the entry for the desired command.