A cron job is a command, which works automatically in the background over a pre-set time period and it also runs a script inside a web hosting account. There aren't any restrictions regarding what the script is - PHP, Bash, Perl, etcetera, what it can do, or what exactly the file extension will be. Examples are sending a day-to-day report which contains all the client activity on a specific website, generating a regular backup or deleting the content in a specific folder. These types of tasks and / or almost every other script can be run on time periods chosen by the end user - every few minutes, hours or days, and even once per month or once per year based on the exact goal. Making use of cron jobs to automate various elements of managing a website saves lots of time and efforts.
Cron Jobs in Shared Hosting
The Hepsia Control Panel, which is included with all our shared hosting
, will allow you to set up cron jobs in several easy steps even if you have never used such a function before. After you log in and navigate to the Cron Jobs area where you can create background tasks, you just have to paste the server access path to PHP, Perl or Python based on the script that you'll execute, type the path inside of your account to the actual script file and then select how often your cron job will be carried out. For the aforementioned, you can use the standard mode and pick the minutes, hours, days, etc. through simple drop-down options, or if you are more knowledgeable, you can use the advanced mode and set the time period with numbers and asterisks i.e. the usual method which you might have employed with other Control Panels.
Cron Jobs in Semi-dedicated Servers
Installing a cron job in our system is really simple. Once you sign in to the Hepsia Control Panel, which is included with all of the semi-dedicated server
accounts, you can go to the Cron Jobs section where you just need to choose the directory path to the script file to be executed along with the command path for the specific language the script was designed in - PHP, Perl, Python, Bash. You'll be able to find the aforementioned within the Control Panel, thus you can copy/paste it with just a few clicks. After that, select the time interval for the cron via drop-down menus for the minutes, hours, days or months and you're all set. Our cron job setup wizard makes the whole process very easy and intuitive, so you won't have any problems if you don't have previous experience. In case you are more tech-savvy, you may also take advantage of the conventional cron format with the two paths, digits and asterisks typed on a single line.