A cron job is an automatic task, which executes a particular action - typically running a script in a hosting account. The task is pre-set, so that 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 may get regular reports how many website visitors have registered on your website, a temp folder can be emptied automatically per week or a backup copy of your content can be generated in a separate folder within your website hosting account. Making use of cron jobs can help you with the management of your sites because you're able to have lots of things carried out automatically and get reports for them, rather than investing precious time and efforts to complete them yourself.
Cron Jobs in Website Hosting
The Hepsia Control Panel, that is included with all the website hosting
, allows you to create cron jobs in a few basic steps even when you have not employed this type of feature before. Once you log in and visit the Cron Jobs section where you're able to set background tasks, you just need to paste the server access path to Perl, Python or PHP with respect to the script you'll run, type the path inside of your account for the specific script file and select how often your cron job will be executed. For the aforementioned, you'll be able to use the standard mode and select the days, hours, minutes, etc. through simple drop-down navigation, or maybe if you are more experienced, you can use the advanced mode and set the time interval with numbers and asterisks i.e. the typical method that you may have used with various Control Panels.
Cron Jobs in Semi-dedicated Servers
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'll be able to go to the Cron Jobs section where you just need to choose the directory path to the script file to be run and the command path for the specific language the script was designed in - PHP, Perl, Python, Bash. You will be able to find the aforementioned inside the Control Panel, and you can copy/paste it with a couple of clicks. Next, select the time period for your cron through drop-down navigation for the minutes, hours, days or months and you'll be all set. Our cron job setup wizard makes the process very simple and intuitive, so you won't have any problems if you don't have prior experience. If you are more experienced, you can also use the conventional cron format with the two paths, digits and asterisks typed on one line.