Advanced Features of cPanel - Cron Jobs

Cron Jobs

The cron jobs feature of CPanel allows you to setup certain scripts that you might have running under your website to be run automatically at a certain time to carry out certain tasks which they have been designed for. The most common use of cron jobs (sometimes referred to as ‘Cron Jobs’ in terms of Linux website hosting) is to carry out tasks which need to be carried out on a regular basis without manual intervention; an example of a cron job in use would be in a web host billing system, where invoices for customers need to be generated at the beginning of the day without any manual intervention. You might also find cron jobs running in the situation where notifications of some sort need to be sent out to website visitors on a regular basis to ensure that they are aware of the latest information or of a new update in their account which they need to be made aware of. When setting up a cron job within CPanel, you are given the option to enter the full command for the script to ensure that it is executed correctly so that you don’t have to come and run the script manually to make it carry out its assigned task correctly. You can also choose the exact time for the script to be run by CPanel automatically - right down to the last minute, you can also choose for scripts to be run every minute of the day but this isn’t recommended since it could easily use up many server resources, and if you are on shared website hosting, could lead to your CPanel shared website hosting account being suspended because of server resource hogging as it is known. You can also choose for CPanel to send you an email notification to tell you whether the cron job has been executed successfully by the server that you are hosted on. You can also select the priority of the task which means that if it is of a high priority, it will be executed before other tasks which might be of a lower priority but still being executed at the same time as yours. You can also specify extra arguments for the execution of the task which you have not specified in the text box labeled for the command. Cron jobs can be incredibly handy in the situation where you need to run a script or task on your website at a certain time or at a certain period and aren’t able to be at your computer to run these tasks or scripts yourself when you need to during the day; this is because the cPanel cron jobs feature gives you the ability to schedule tasks or scripts related to your website to run at any time of the day and at regular periods if it is really necessary for the running of your website.

Leave a Reply

You must be logged in to post a comment.

AWSOM Powered