Cronjobs are scheduled task that runs at the intervals or prdefined times on the server. The purpose of cronjob is to execute series of simple tasks from a script file provided by the user. This cronjob can be done through cPanel in which it offers the user interface as a tool to ease users to setup cronjobs for his site.
Accessing your cPanel
To access the cronjobs section on your cPanel, you just need to click on the crojob icon highlighted in the screenshot below.
Specify an email address at the cron email section to receive notification or status nessages whenever your cronjobs are executed.
Adding a cron job
There are several steps allocated for this section. You'll need to follow the provided steps carefully in order to make your cornjobs working correctly on your site.
Setting Up Cronjob Interval.
To setting up cronjobs, you'll need to configure the interval at which second do you wish to run the cronjob.
Use this menu to select the number of minutes between running the cronjob or the minute of each hour for which you wish to run the cronjobs.
Use this menu to select the number of hours between running the cron job, or the hour each day on which you wish to run the cron job.
Use this menu to select the number of days between running the cron job, or the day of the month on which you wish to run the cron job.
*Use this menu to select the number of months between running the cron job, or the month of the year in which you wish to run the cron *
Use this menu to select the day(s) of the week on which you wish to run the cron job.
Setting Up Cronjob Command
In the command field, you'll need to add the correct command for cronjobs to run properly.
Once you've finished configuring the cronjobs, you'll need to click on Save Crontab button and you're ready to test your cronjob on your site.
This concludes how to create a cron job in cPanel.