A cron job is an automated task, which performs a particular action - typically executing a script inside a hosting account. The task is scheduled, which means that it will run on a regular basis - weekly, daily, hourly etc. There are many good reasons to use a cron job for your sites. For instance, you can get day-to-day reports how many site visitors have registered on your website, some temp folder may be emptied automatically each and every week or a backup copy of your content can be generated in a separate folder inside your hosting account. Using cron jobs can help you with the management of your sites since you can get many things done automatically and have reports for them, in lieu of spending valuable time and efforts to complete them by hand.
Cron Jobs in Shared Hosting
The Hepsia Control Panel, which is provided with all our Linux shared hosting
, allows you to set up cron jobs in a few simple steps even if you haven't ever used this type of function previously. As soon as you log in and visit the Cron Jobs section where you can create background tasks, you just have to paste the system access path to PHP, Pyton or Perl depending on the script you will execute, type the path inside of your account to the actual script file and select how often the cron job has to be executed. For the latter, you'll be able to use the standard mode and pick the days, hours, minutes, etcetera through straightforward drop-down menus, or if you are more skilled, you'll be able to use the advanced mode and set the time period with numbers and asterisks i.e. the usual method which you might have employed with different Control Panels.
Cron Jobs in Semi-dedicated Hosting
Installing a cron job in our system is a breeze. Once you sign in to the Hepsia Control Panel, which is provided with all of the semi-dedicated server
accounts, you will be able to go to the Cron Jobs section where you just have to pick the directory path to the script file to be run plus the command path for the particular language the script was designed in - PHP, Perl, Python, Bash. You'll be able to find the aforementioned within the Control Panel, and you can copy/paste it with just a couple of clicks. Next, choose the time period for your cron using drop-down menus for the months, days, hours or minutes and you are all set. Our cron job setup wizard makes the entire process very easy and intuitive, so you won't have any problems if you don't have prior experience. When you are more tech-savvy, you can also use the standard cron format with the two paths, digits and asterisks typed on one line.