Knowledgebase
Portal Home > Knowledgebase > cPanel > Cron Jobs
Cron Jobs
| To set up your own Cron job, first you need to log in to your cPanel account. Next, click on the cPanel Cron Jobs menu to begin. Your browser should then load the Standard Cron Manager page. Creating a Cron job in cPanel is fairly easy and only takes three simple steps:
- First, input your e-mail address in the given field. After the Cron job executes a task, the result will be sent to you so you will know if there are any errors.
- In the Command to run field, input the path to your desired script. If you want to run a PHP file, input php followed by a space and the path to your script. If you want to run an automatic backup script, you need to type /bin/sh followed the path to your script.
- Next, set your schedule. You can set the minute, hour, day, weekday and month of your Cron job. Remember, the shorter the interval you set, the more often you will receive e-mails informing you whether your scheduled task has been executed successfully. It is advised that you set a short interval so that you can quickly receive a notification e-mail. This is so that if there are any errors, you can go back and check your settings.
Once you have finished the three steps above, your Cron job is done. Click on the Save Crontab button to save your Cron job.
|
Add to Favourites
Print this Article
|
Also Read
SpamAssasin (Views: 166)
File Back Up (Views: 220)
Powered by WHMCompleteSolution