JavaServer Page

December 7, 2006

The 0 indicates the offset from the beginning

Filed under: OpenCms 6 — webmaster @ 11:36 am

The 0 indicates the offset from the beginning of the hour. (0 means there is no offset.) The 15 indicates that it should run every fifteen minutes. If we want the job to run at five minutes after the hour and then every fifteen minutes, we would have 5/15 instead of 0/15. The optional seventh field, year, can be specified to restrict the job to only run during the specified year or years. For example, to run a job at 7:15:30 AM every Tuesday during the first quarter of the years 2006 and 2007, I could use the string: 30 15 7 ? Jan-Mar Tue 2006-2007 The year must be between 1970 and 2099, inclusive. I would not recommend using OpenCms 6 in the years following 2099. Summary In this appendix, we have examined the cron expression syntax, looking at examples along the way. Expressions in this format can be used to schedule tasks using the New Job screen in the administration view.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost tomcat Web Hosting services

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Java Web Hosting