wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes scheduler cron format for specified hours Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "scheduler cron format for specified hours" Watch "scheduler cron format for specified hours" New topic
Author

scheduler cron format for specified hours

kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 47

Hi

I need to run a data scheduler between application maintenance hours like moring 9AM to 11AM for only once. please suggest a cron format.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41092
    
  44
So you want to run it once every day at, say, 10am? While we could certainly look that up for you in the documentation (if we wanted to, that is), let's start by you telling us what you think it is. Or -if you have no idea- what you think it might be after consulting the documentation.


Ping & DNS - my free Android networking tools app
kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 47

I tried following cron



this is running for every minute between 9:00 AM to 11:59AM. As we mentioned boundary time is 11AM it still running till 11:59 AM ... why?

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41092
    
  44
Let's break these down one by one. You have 6 values there - what does the value of each single one of them mean?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: scheduler cron format for specified hours
 
Similar Threads
Restart Tomcat 6 every 5 hours.
Taking Memory Usage Periodically
Need to run a schedule task only once in betweeen mentioned hours.
Building a cron trigger which execute every two weeks
Best practice to use timers to check current time and xml file records