Cron Jobs
Learn about what cron jobs are, how they work and ways to utilize them to boost your digital life.
A cron job is a command, that works automatically in the background on a pre-set period and it also executes a script inside a hosting account. There are no limitations regarding what the script is - PHP, Bash, Perl, etc., what it can do, or what exactly the file extension should be. A few examples are sending a regular report which contains all the client activity within a given site, generating a regular backup or deleting the files within a particular folder. These tasks or some other script can be executed on time intervals specified by the end user - each few minutes, hours or days, and even once per month as well as once per year based on the particular objective. Using cron jobs to speed up various aspects of administrating a site saves lots of time and efforts.
-
Cron Jobs in Shared Hosting
The Hepsia Control Panel, that comes with all of our
Linux shared hosting, will allow you to set up cron jobs in a few simple steps even when you have not employed such a function previously. After you log in and navigate to the Cron Jobs section where you're able to create background tasks, you just need to copy and paste the system access path to Perl, Python or PHP based on the script that you'll run, type the path within your account to the actual script file and select how often your cron job will be executed. For the aforementioned, you can use the basic mode and pick the minutes, hours, days, etcetera through straightforward drop-down options, or if you are more skilled, you'll be able to use the advanced mode and set the time interval with numbers and asterisks i.e. the standard method that you might have used with different Control Panels.
-
Cron Jobs in Semi-dedicated Hosting
In case you use a
semi-dedicated server account from our company to host your sites, you'll be able to create cron jobs for any of them effortlessly. This can be done in three uncomplicated steps from the Hepsia Control Panel that is used to control the website hosting account, so you're able to create a new cron even if you lack prior experience. Inside the Cron Jobs area of Hepsia, you will find a box where you need to copy/paste the path to the system files in your account for the programming language your script was written in - PHP, Perl, Bash, Python, etc. You also need to provide the folder path to the script file that'll be executed in the same box and use our intuitive drop-down menus to decide how often our system will run the cron. Experienced users, can also take advantage of the traditional method of setting up a cron job by typing digits and asterisks in specific positions as well as the aforementioned paths.