A cron job is an automatic task, which executes a particular action - typically running some script inside a web hosting account. The task is scheduled, so it will run regularly - weekly, daily, hourly and so on. There are numerous reasons to employ a cron job for your websites. For instance, you may get day-to-day reports how many visitors have registered on your website, a temporary folder can be emptied automatically every week or a backup copy of your content can be generated in a standalone folder in your hosting account. Using cron jobs will help you with the management of your websites since you are able to get several things completed automatically and have reports about them, as an alternative to spending time and efforts to complete them by hand.
Cron Jobs in Shared Hosting
The Hepsia Control Panel, which is included with all the shared plans, allows you to create cron jobs in a couple of basic steps even when you have not used this option before. Once you log in and go to the Cron Jobs area where you can assign background tasks, you just need to copy and paste the system access path to PHP, Pyton or Perl according to the script that you will run, type the path in your account for the specific script file and then select how often your cron job has to be carried out. For the aforementioned, you can use the standard mode and select the minutes, hours, days, etc. through straightforward drop-down options, or maybe in case you are more experienced, you can take full advantage of the advanced mode and set the time period with numbers and asterisks i.e. the typical method which you might have used with different Control Panels.
Cron Jobs in Semi-dedicated Servers
Setting up a cron job in our system is a piece of cake. Once you log in to the Hepsia Control Panel, which comes with all of the semi-dedicated server accounts, you can go to the Cron Jobs section where you just need to pick the directory path to the script file to be executed and the command path for the particular language the script was written in - PHP, Perl, Python, Bash. You will be able to find the latter in the Control Panel, and you can copy/paste it with a couple of clicks. Then, choose the time interval for your cron through drop-down menus for the months, days, hours or minutes and you are all set. Our cron job setup wizard makes the whole process really easy and intuitive, so you won't have any problems if you don't have previous experience. If you are more experienced, you can also use the regular cron format with the two paths, digits and asterisks typed on one line.