What is a cron job? What ?job? does a cron job usually perform? How could cron jobs make your web experience easier?
A cron job is a command, which functions conveniently in the background on a predefined period of time and it also runs a script inside a web hosting account. There aren't 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. A few examples are sending a regular report which contains all of the user activity within a given website, generating a routine backup or erasing the content inside a specific folder. These kinds of tasks and / or almost every other script can be run on time intervals picked by the user - every couple of minutes, hours or days, and even once a month or perhaps once per year depending on the specific intent. Using cron jobs to improve various elements of administrating a website saves considerable time and efforts.
Cron Jobs in Shared Web Hosting
The Hepsia Control Panel, that comes with all the Linux shared web hosting
, allows you to create cron jobs in a couple of easy steps even if you have never employed such a feature previously. As soon as you log in and visit the Cron Jobs section where you're able to assign background tasks, you just need to paste the server access path to PHP, Perl or Python based on the script that you will execute, type the path in your account to the actual script file and select how often the cron job has to be carried out. For the aforementioned, you can use the basic mode and pick the days, hours, minutes, etc. through uncomplicated drop-down menus, or in case you are more knowledgeable, you'll be able to use the advanced mode and specify the time interval with numbers and asterisks i.e. the standard method which you may have employed with various other Control Panels.
Cron Jobs in Semi-dedicated Hosting
If you use a semi-dedicated server
account from us to host your websites, you can set up cron jobs for all of them effortlessly. This can be done in 3 very easy steps inside the Hepsia Control Panel that's used to take care of the hosting account, so you will be able to create a new cron even if you lack previous experience. In the Cron Jobs part of Hepsia, you'll discover a box where you need to copy and paste the path to the system files inside your account for the programming language your script was written in - Python, PHP, Perl, Bash, etcetera. You also have to provide the folder path to the script file that will be executed in the same box then use our user-friendly drop-down menus to choose how often our system will run the cron. Experienced users, can also employ the traditional method of creating a cron job by typing digits and asterisks in certain positions as well as the aforementioned paths.