DeveloperWeb

  Dashboard > GX DeveloperWeb > ... > Tutorial, Documentation and software resources > Cron
Cron Log In | Sign Up   View a printable version of the current page.

Added by williamb@gx.nl , last edited by Anonymous on Apr 06, 2010  (view change)
Labels: 

Some scheduled tasks in WebManager can be configured when to run. These configuration settings are formatted according to the Unix Cron format.

Two different formats are being used; one for the Scheduling Services and one for the Search Engine. Determine which format you need and follow the examples in the appropriate section below.

Scheduling Services

The following format is used for the WebManager Scheduling Services.

.------------------- Seconds (0 - 59 [,-*/])
|  .---------------- Minutes (0 - 59 [,-*/])
|  |  .------------- Hours (0 - 23 [,-*/])
|  |  |  .---------- Day of month (1 - 31 [,-*?/LWC])
|  |  |  |  .------- Month (1 - 12 or JAN-DEC [,-*/])
|  |  |  |  |  .---- Day of week (1 - 7 or SUN-SAT [,-*?/LC#])
|  |  |  |  |  |  .- Year (OPTIONAL: empty or 1970-2099 [,-*/])
|  |  |  |  |  |  |
*  *  *  *  *  *  *

Examples

Below are some examples to demonstrate the use of the Scheduling Services cron format:

0 3 1,4,19,21 * * *

The example above schedules a service to be run every day at 01:03:00, 04:03:00, 19:03:00 and 21:03:00.

0 */10 * * * *

The example above schedules a service to be run every 10 minutes every day.

0 45 9 1,15 * *

The example above schedules a service to be executed at the 1st and 15th of every month at 09:45:00

0 0 2 ? * *

The example above (taken from the `Google sitemap generator schedule`) schedules a service to be executed at 2 o'clock every day.

WebManager Search Engine

The following cron format is used for the WebManager Search Engine.
Notice that it has no place to specify seconds or the year.

.---------------- Minutes (0 - 59 [,-*/])
|  .------------- Hours (0 - 23 [,-*/])
|  |  .---------- Day of month (1 - 31 [,-*?/LWC])
|  |  |  .------- Month (1 - 12 or JAN-DEC [,-*/])
|  |  |  |  .---- Day of week (1 - 7 or SUN-SAT [,-*?/LC#])
|  |  |  |  |
*  *  *  *  *






Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators