Learn about what cron jobs are, what they do and the way to use them to improve your digital life.
A cron job is an automated task, that performs a particular action - usually executing a script in the website hosting account. The task is scheduled, therefore it will run on a regular basis - hourly, daily, weekly and so on. There are numerous reasons to employ a cron job for your sites. As an example, you can get regular reports how many visitors have signed up on your site, some temp folder may be emptied automatically per week or a backup of the content can be made in a standalone folder within your hosting account. Using cron jobs will help you with the administration of your websites because you'll be able to get a lot of things completed automatically and get reports for them, as opposed to investing valuable time and efforts to complete them manually.
Cron Jobs in Shared Web Hosting
The Hepsia Control Panel, which comes with all the Linux shared web hosting packages
, will help you to create cron jobs in a few simple steps even when you have not employed this option previously. After you sign in and visit the Cron Jobs section where you're able to set background tasks, you just need to copy and paste the system access path to Perl, Python or PHP based on the script you'll execute, type the path within your account to the specific script file and then choose how often your cron job will be carried out. For the latter, you can use the standard mode and choose the minutes, hours, days, etc. using uncomplicated drop-down menus, or if you are more skilled, you can take full advantage of the advanced mode and specify the time interval with numbers and asterisks i.e. the typical method that you might have employed with various Control Panels.
Cron Jobs in Semi-dedicated Hosting
Setting up a cron job in our system is very simple. Once you sign in to the Hepsia Control Panel, which is provided with all the semi-dedicated server
accounts, you're able to go to the Cron Jobs section where you just have to pick the directory path to the script file to be executed plus the command path for the specific language the script was written in - PHP, Perl, Python, Bash. You're able to find the aforementioned within the Control Panel, and you can copy/paste it with just a few clicks. After that, choose the time period for your cron using drop-down menus for the minutes, hours, days or months and you'll be all set. Our cron job setup wizard makes the entire process very easy and intuitive, so you will not have any problems if you do not have prior experience. When you are more tech-savvy, you can also take advantage of the standard cron format with the two paths, digits and asterisks typed on one line.