A cron job is a command, which works conveniently in the background on a pre-set period of time and it also runs a script within a hosting account. There aren't any limits in regard to what the script is - PHP, Bash, Perl, etcetera, what it can do, or what exactly the file extension should be. Some examples are sending a day-to-day report with all the user activity on a specified site, generating a regular backup or deleting the files in a particular folder. These tasks as well as some other script can be executed on time intervals picked by the user - each couple of minutes, hours or days, and even monthly or once per year depending on the exact objective. Making use of cron jobs to improve different aspects of administrating a website saves lots of time and efforts.
Cron Jobs in Cloud Hosting
The Hepsia Control Panel, which is provided with all our Linux cloud plans, will help you to create cron jobs in several basic steps even when you have never employed this option before. Once you sign in and go to the Cron Jobs area where you'll be able to create background tasks, you just have to paste the server access path to Perl, Python or PHP depending on the script that you'll execute, type the path in your account for the actual script file and after that choose how often your cron job will be carried out. For the aforementioned, you'll be able to use the basic mode and choose the days, hours, minutes, etc. through straightforward drop-down menus, or in case you are more skilled, you can use the advanced mode and set the time interval with numbers and asterisks i.e. the standard method that you might have employed with different Control Panels.
Cron Jobs in Semi-dedicated Servers
If you want to use cron jobs for any of your sites and you have a semi-dedicated server account from our company, it won't take you more than a couple of clicks in your Hepsia web hosting Control Panel to do this. Installing a brand new cron job is really simple and you're able to add one from the Advanced section of Hepsia where you can find a box to type in 2 things - the path to the programming language system files which you'll find in the Server Information area (PHP, Python, Perl) and the path to the script that you need the cron job to run. The very last step is to decide how often the cron will run and we have a rather intuitive interface for that, which means that by using drop-down navigation you'll be able to pick the interval in minutes, hours or days. In case you are more tech-savvy or used to the particular standard, although more complex way to set a cron interval using digits and asterisks, you can use this solution as well.