Cron’s are a way to schedule re-occurring tasks: such as running scripts, sending out emails, or giving your CMS a regular timing source so it can perform tasks such as publish scheduled posts
You can find the ‘Cron Jobs’ tool within cPanel
1. Set the email you would like the cron’s output to be emailed to
2. Set the timings for the cron
Common Timing Examples are
Timing Examples
* * * * * = Every minute (1:00,1:01,1:02)
5 * * * * = Every fifth minute, of every hour (1:05, 2:05)
*/5 * * * * = Every fifth minute, of every hour 1:00, 1:05, 1:10)
0 0 * * * = Once every night, at midnight
0 0 * * 3 = At midnight, every Wednesday
0 * * * 1-5 = Every hour, on the hour, between Monday – Friday
5 2 6 1 * = At 02:05 on the 6th January
An example of a cron running ‘once per fifteen Minutes’ is:
3. Enter the command you want to run
Be sure to specify the command, and full path to the script including cPanel username
If you do not want the output emailed to you every time the script runs, be sure to null the output by appending the following to the output:
>/dev/null 2>&1
4. Once confident with the command and schedule, click ‘Add New Cron Job’
Once added, you will be able to see the Cron Job and edit it if required