CRONJobs, or scheduled tasks, allow you to run scripts on your website as frequently as you decide. If you have a process that needs to run automatically at a certain frequency, you can set its periodicity by configuring a CRONJob.
1.-Starting the CRONJob configuration
To configure it, access the hosting management section, go to the "Server" section, and click the CRONJobs icon.
If you want to receive the execution results every time a CRONJob runs, you must activate the following button:
You must keep in mind that you will only receive the email if the script returns a result. If the script you run does not return any result, you will not receive any email even if you have this option configured.
2.-Configuration options
You can configure a CRONJob with the basic wizard or the advanced wizard.
In the panel, you can see the "Create cronjob" section, where you access the basic CRONJob management that runs through a simple form.
CRONJob identifier: name that identifies the created CRONJob. It can have the same name as the CRONJob path.
Command to run: call to the script you want to run. It can be a simple execution or it can include parameters in the call (for example, /cron.php?time_ex=oadpASDk=). It can be changed so that it runs in http:// or https://
Time ranges: the period and frequency with which you want the script to run.
Minutes: you can configure a frequency such as every x minutes or at a specific minute, minute xx (of the 60 minutes in an hour).
Hours: you can configure a frequency such as every x hours or at a specific hour, hour xx (of the 24 hours in a day).
Days: you can configure the frequency as "Every day", select a day of the week, or on day xx (of the 31 possible days in a month).
Months: you can select "Every month" or one of the twelve months of the year.
Once configured, you must click Save data to save the configuration.
In the panel, you can see the "Create cronjob" section, where you access the basic CRONJob management that runs through a simple form. You must select the "Advanced configuration" option to access it:
CRONJob identifier: name that identifies the created CRONJob. It can have the same name as the CRONJob path.
Command to run: call to the script you want to run. It can be a simple execution or it can include parameters in the call (for example, /cron.php?time_ex=oadpASDk) It can be configured to run the file with http:// or https://
Time ranges: the period and frequency with which you want the script to run.
Minutes: you can configure a frequency such as every x minutes or at a specific minute, minute xx (of the 60 minutes in an hour).
Hours: you can configure a frequency such as every x hours or at a specific hour, hour xx (of the 24 hours in a day).
Days: you can configure the frequency as "Every day" or on day xx (of the 31 possible days in a month).
Months: you can select "Every month" or one of the twelve months of the year.
Day of the week: you can select a day of the week. 0 equals Sunday.
Once configured, click Save data to save the configuration.
At the bottom of the panel, you will see the "List of cronjobs" section.
You can see the following data for each configured cronjob:
Identifier: name of the CRONJob.
Minute: selected execution frequency referring to minutes.
Hour: selected execution frequency referring to hours.
Day: selected execution frequency referring to the day.
Month: selected execution frequency referring to months.
Day of the week: selected execution frequency referring to the day of the week.
Edit: allows you to edit the inserted CRONJob.
Delete: removes the CRONJob from the system.