Cron Jobs
Find out what cron jobs are, how they work and how to make use of them to improve your digital life.
A cron job is a command, which functions conveniently in the background over a predefined period and it executes a script within a web hosting account. There aren't any limitations in regard to what the script can be - PHP, Bash, Perl, etcetera, what it could do, or what exactly the file extension will be. Examples are supplying a regular report with all of the end user activity within a given website, generating a regular backup or deleting the files within a certain folder. These tasks or some other script can be executed on intervals specified by the end user - each couple of minutes, hours or days, and even monthly or maybe once per year depending on the exact purpose. Working with cron jobs to speed up various elements of managing a site saves lots of time and efforts.
-
Cron Jobs in Cloud Hosting
The Hepsia Control Panel, that is included with all the
cloud plans, allows you to create cron jobs in a couple of basic steps even when you have never used this type of function before. After you log in and go to the Cron Jobs section where you can create background tasks, you just have to paste the system access path to Perl, Python or PHP with respect to the script that you will run, type the path within your account to the actual script file and select how often the cron job will be carried out. For the aforementioned, you can use the standard mode and pick the minutes, hours, days, etcetera via uncomplicated drop-down navigation, or in case you are more skilled, you'll be able to use the advanced mode and set the time period with numbers and asterisks i.e. the standard method that you might have used with different Control Panels.
-
Cron Jobs in Semi-dedicated Servers
If you wish to use cron jobs for any of your sites and you have a
semi-dedicated server account with us, it will not take you more than a couple of clicks inside your Hepsia website hosting Control Panel to do this. Setting up a brand new cron job is quite simple and you can add one from the Advanced section of Hepsia where you'll find a box to type in 2 things - the path to the programming language system files which you can find inside the Server Information section (Perl, Python, PHP) along with the path to the script that you'd like the cron job to execute. The very last step is to choose how often the cron will be executed and we've got a rather intuitive interface for that, therefore by using drop-down navigation you can pick the interval in minutes, hours or days. If you are more tech-savvy or used to this standard, albeit more advanced way to set a cron interval employing digits and asterisks, you can use this option as well.