cPanel's Cron Jobs Feature

Crons are used to set up time-based 'jobs' for your account. This will allow you to have simple commands or scripts run at a scheduled time. cPanel has a very easy-to-use feature within the control panel.

Access the Cron Jobs Application



After you have accessed your cPanel account, you will want to click the 'Cron Jobs' application under the 'Advanced' section. You can also easily find this application using the 'Search' function.



Set-up an e-mail address for the cron



Here you can choose an e-mail address you would like to have updated whenever the cron runs. If you do not wish to receive an e-mail you can set the following in redirect the cron's output in your script: mycommand >/dev/null 2>&1



 

Choose cron schedule and input script



Here you can choose common settings from the drop down, or choose the minute, hour, day, month, and weekday schedule individually. At the bottom you can input the command or script that you would like to have run. (e.g., sh /user/public_html/testscript.sh  or rm -rf /user/public_html/tmp/*)



 

Click 'Add New Cron Job'



Once the cron is added, you can set your active crons at the bottom of the page, and you can then edit or delete them as needed.