Learn what cron jobs are actually, how they work and how to utilize them to enhance your digital life.
A cron job is a command, that functions automatically in the background on a predefined period and it also executes a script inside a web hosting account. There aren't any restrictions in regard to what the script is - PHP, Bash, Perl, etcetera, what it could do, or what exactly the file extension should be. Some examples are mailing a daily report with all of the end user activity on a specified website, generating a regular backup or erasing the content in a particular folder. These types of tasks as well as some other script can be executed on time intervals specified by the end user - each couple of minutes, hours or days, and even once per month or maybe annually according to the particular intent. Working with cron jobs to automate various elements of administrating a website saves a lot of time and efforts.
Cron Jobs in Shared Hosting
Setting up a cron job requires precisely 3 quick steps when you get a shared hosting package from us. The Hepsia Control Panel, that comes with all the web hosting accounts, has a section centered on the crons and once you get there, you should type the folder path to the script that you want to be executed, the command path to the system files for the selected programming language (Perl, Python, PHP), that you can copy from the Server Information section, and after that determine how often the cron job needs to run. For that time interval, we offer two choices - a user-friendly one with drop-down menus where you can pick the minutes, hours, days or months, as well as a more complex one that is used with many other hosting Control Panels in which you have to type numbers and asterisks on certain positions that outline separate periods of time.