CRONJobs, or scheduled tasks, allow you to run scripts from your website at the frequency you choose. 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 area, go to the "Server" section, and click on the CRONJobs icon.
If you want to receive the execution results each time a CRONJob runs, you need to activate the following button:
Please note that you will only receive an email if the script returns a result. If the executed script does not return any output, you will not receive any email even if this option is enabled.
2.-Configuration options
You can configure a CRONJob using the basic wizard or the advanced wizard.
In the panel you will see the "Create cronjob" section, where you can access the basic CRONJobs management executed through a simple form.
CRONJob identifier: name that identifies the created CRONJob. You can use the same name as the CRONJob path.
Command to execute: call to the script you want to execute. It can be a simple execution or include parameters in the call (for example, /cron.php?time_ex=oadpASDk=). It can be changed to run with http:// or https://
Time ranges: the period and frequency at 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 (out 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 (out 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 (out 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 on Save data to save the configuration.
In the panel you will see the "Create cronjob" section, where you can access the basic CRONJobs management executed through a simple form. You must select the "Advanced configuration" option to access it:
CRONJob identifier: name that identifies the created CRONJob. You can use the same name as the CRONJob path.
Command to execute: call to the script you want to execute. It can be a simple execution or include parameters in the call (for example, /cron.php?time_ex=oadpASDk). It can be configured to execute the file with http:// or https://
Time ranges: the period and frequency at 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 (out 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 (out of the 24 hours in a day).
Days: you can configure the frequency as "Every day" or on day xx (out 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 corresponds to Sunday.
Once configured, click on 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.
Related Articles
How to reduce wp-cron.php consumption
WordPress has scheduled tasks, such as checking WordPress updates, plugins or theme, backing up, pingbacks, etc. These tasks are usually triggered when someone visits the web, for example. That is why it is not a problem until you have a peak of ...
How to set up White Label Panel (Management)
Server domains In the accommodation ofcdmonyou have a white mark panel so that you can give access to another user and allow them to manage the hosting. The advantage of this dashboard is that the user you provide access will only be able to manage ...
How to set up hosting PHP
Within the advanced tools of the hosting service, you will find the option Configure PHP, where you can modify different PHP directives to adjust your hosting to the requirements requested by some CMS applications. These values vary depending on the ...
How to set up a web redirection by URL
To perform a URL redirection from your Control Panel, you need to have either a domain name or a web hosting account with cdmon, or both. There are three possible ways to create the URL redirection: through the "Domain Management", through the ...
How to set up custom error pages
There are many types of server errors that may appear on your website and usually display a default server message. From the Control Panel, you can make this error message a custom page. To access it, go to the hosting management, and in the 'Server' ...