Cron Jobs
Learn what cron jobs are, what they do and ways to make use of them to improve your digital life.
A cron job is a command, which runs automatically in the background on a pre-set period and it executes a script inside a hosting account. There won't be any limits regarding what the script can be - PHP, Bash, Perl, etc., what it could do, or what exactly your file extension will be. Some examples are mailing a daily report with the client activity on a specific site, creating a routine backup or erasing the content within a particular folder. These types of tasks as well as almost every other script can be run on time intervals specified by the user - each couple of minutes, hours or days, and even once per month or once per year depending on the specific objective. Making use of cron jobs to automate various elements of administrating a site saves a lot of time and efforts.
-
Cron Jobs in Shared Website Hosting
Creating a cron job will take you precisely 3 quick steps if you get a
shared website hosting plan with us. The Hepsia Control Panel, which comes with all the web hosting accounts, features a section focused on the crons and when you get there, you should type the folder path to the script that you would like to be run, the command path to the system files for the particular programming language (Perl, Python, PHP), that you can copy and paste from the Server Information section, and set how often the cron job should run. For that time interval, our company offers two options - an easy to use one with drop-down navigation where you can choose the minutes, hours, days or months, along with a more advanced one that is used with different web hosting Control Panels in which you are required to type numbers and asterisks on certain positions that define different periods of time.
-
Cron Jobs in Semi-dedicated Servers
If you use a
semi-dedicated server account from our company to host your websites, you're able to install cron jobs for all of them effortlessly. This is done in 3 very easy steps in the Hepsia Control Panel which is used to manage the web hosting account, so you are able to set up a new cron even if you do not have any prior experience. Inside the Cron Jobs area of Hepsia, you'll discover a box where you should copy and paste the path to the system files in your account for the programming language your script was designed in - Python, PHP, Perl, Bash, etc. You also need to provide the folder path to the script file that will be executed in the same box and then use our intuitive drop-down menus to choose how often our system will execute the cron. Advanced users, can also take advantage of the traditional method of creating a cron job by typing digits and asterisks in certain positions as well as the aforementioned paths.