Cron Jobs

To access cron jobs, click on the "Advanced Tools" icon from the main control panel menu, then click the "Cron Jobs" icon.  

 

Cron jobs are system commands that can be scheduled.  For example, if you wanted a CGI script to run every Monday morning, you could do this through the cron jobs menu.  Values that can be set are minute, hour, day, month, and day of week (Monday-Sunday; the numbers 0 or 7 represent Sunday).  Any value can be ignored by placing an asterisk (*) in the text field.

 

 

In the above example, we are setting updater.cgi to run every day at midnight.  

 

You can also specify exact times using commas to separate them (e.g. 1,2,3  is minutes 1, 2 and 3).  

 

You can specify spans using a dash (e.g. 5-7 is minutes 5 to 7).  

 

You can specify intervals using a star and a forward slash. (e.g.: */2 is every 2nd minute.)

 

You can combine them to create a more precise schedule. (e.g.: 1,5,11-15,30-59/2 (minutes 1, 5, 11 to 15 and every 2nd minute between 30 and 59).

 

Remember to click "Add" when you are finished entering your data.

 

If you're trying to run a php script, remember to run the php binary, and pass it the php script. For example:

/usr/local/bin/php /home/user/domains/domain.com/public_html/file.php

  • 0 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

404 Error Pages

Error pages allow you to control what visitors see when they encounter these types of errors:...

Directory Password Protection

From the main control panel menu, click the "Directory Password Protection" icon.  If you have no...

Server Information

To access the server information, click on the "Advanced Tools" icon from the main control panel...

Hosting Additional Domains

To host additional domains, click on the "Advanced Tools" icon from the main control panel menu,...

Powered by WHMCompleteSolution