Cron Jobs
Learn about what cron jobs are actually, how they work and how to make use of them to enhance your digital life.
A cron job is a command, that works conveniently in the background over a predefined time period and it executes a script inside a website hosting account. There are no restrictions in regard to what the script is - PHP, Bash, Perl, etcetera, what it can do, or what exactly the file extension will be. A few examples are sending a daily report which contains all the client activity on a specified website, creating a routine backup or erasing the content inside a certain folder. These tasks and / or any other script can be run on intervals chosen by the user - each few minutes, hours or days, and even once a month or once per year depending on the particular intent. Working with cron jobs to automate different elements of managing a site saves lots of time and efforts.
-
Cron Jobs in Shared Web Hosting
Setting up a cron job requires exactly 3 simple steps when you acquire a
shared web hosting package from us. The Hepsia Control Panel, that comes with all of the web hosting accounts, has a section centered on the crons and once you get there, you need to type the folder path to the script that you would like to be run, the command path to the server files for the specified programming language (Perl, Python, PHP), that you can copy from the Server Information section, and then specify how frequently the cron job needs to run. For the time interval, we offer two options - an easy to use one with drop-down menus where you can select the minutes, hours, days or months, as well as a more complex one that's used with different hosting Control Panels in which you should type numbers and asterisks on specific positions that define different periods of time.
-
Cron Jobs in Semi-dedicated Hosting
Setting up a cron job in our system is easy. Once you sign in to the Hepsia Control Panel, which is provided with all
semi-dedicated server accounts, you're able to go to the Cron Jobs section where you only need to select the directory path to the script file to be run and the command path for the particular language the script was written in - PHP, Perl, Python, Bash. You can find the aforementioned in the Control Panel, so you can copy/paste it with several clicks. Then, choose the time period for the cron through drop-down navigation for the minutes, hours, days or months and you're all set. Our cron job setup wizard makes the entire process very simple and intuitive, so you will not have any problems if you don't have prior experience. If you are more experienced, you may also take advantage of the standard cron format with the two paths, digits and asterisks typed on a single line.