A cron job is a command, which works conveniently in the background on a predefined period and it executes a script within a hosting account. There won't be any limitations in regard to what the script can be - PHP, Bash, Perl, etc., what it could do, or what exactly your file extension should be. Some examples are sending a day-to-day report which contains all the end user activity within a specific site, creating a regular backup or deleting the files inside a specific folder. These tasks or any other script can be run on time intervals specified by the end user - every few minutes, hours or days, and even once a month as well as once per year depending on the exact objective. Working with cron jobs to automate various aspects of managing a site saves lots of time and efforts.
Cron Jobs in Hosting
The Hepsia Control Panel, that comes with all of our Linux hosting
, allows you to set up cron jobs in a couple of basic steps even when you haven't ever used this type of feature previously. When you sign in and navigate to the Cron Jobs section where you can create background tasks, you just need to copy and paste the system access path to Perl, Python or PHP according to the script that you'll run, type the path inside of your account for the actual script file and then select how often the cron job has to be executed. For the aforementioned, you'll be able to use the standard mode and choose the minutes, hours, days, etcetera via straightforward drop-down menus, or in case you are more experienced, you can take full advantage of the advanced mode and set the time period with numbers and asterisks i.e. the standard method which you might have employed with different Control Panels.
Cron Jobs in Semi-dedicated Hosting
If you want to use cron jobs for some of your sites and you have a semi-dedicated server
account with us, it won't take you more than a couple of clicks inside your Hepsia hosting Control Panel to do that. Creating a brand new cron job is very easy and you will be able to add one from the Advanced part of Hepsia where you'll find a box to type in two things - the path to the programming language system files that you can find in the Server Information area (Perl, Python, PHP) and the path to the script that you want the cron job to run. The very last step is to select how often the cron will run and we've got an extremely user-friendly interface for that, which means that by using drop-down menus you can choose the interval in minutes, hours or days. If you are more tech-savvy or used to the standard, albeit more sophisticated way to set a cron interval using digits and asterisks, you can use this alternative as well.