Cronjobs are scheduled task that runs at a intervals or pre-defined times on the server. The purpose of cronjob is to execute series of simple repetitive tasks from a script file provided by the user. This cronjob can be configured through cPanel as the user interface is provided to ease the configuration process.
Setting Up Cronjob
First and foremost, you will need to have administrator access to your site's cPanel. Once you're logged in, search for Cronjob icon and click on the icon, highlighted in the following screenshot.
Specify an email address at the cronjob email section to receive notification or status messages whenever your cronjobs are executed.
There are several steps allocated under this section. You will need to follow the provided steps carefully so that your site's cronjob will be working correctly.
Seting Up Cronjob Interval.
To setting up cronjob, 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 cronjob to run properly.
Once you've finished configuring the cronjob, you'll need to click on Save Crontab button and you're ready to test your cronjob on your site.