aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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: 42913
    
  68
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.
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: 42913
    
  68
Let's break these down one by one. You have 6 values there - what does the value of each single one of them mean?
 
Consider Paul's rocket mass heater.
 
subject: scheduler cron format for specified hours