 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
Joshua Youngblood
Joined: 14 Apr 2006 Posts: 82 Country: United States |
|
Scheduling Job to Run on Specific Days of Specific Months |
|
I have a job that needs to run on the first day of February and September. I have considered scheduling the job to run on the first of every month and just wrapping the script's code in a check of the month. Using the scheduler, is it possible to just schedule a job to only run on a specific day for specific months?
|
|
Wed Dec 02, 2009 12:56 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
yes - it is possible in 24x7 MP Edition. no - it is not possible in Windows Edition. If you are using MP Edition, create a new "inclusive" calendar and select months and days that you want to use. If you are using Windows editor, please schedule it to run monthly and in the job code add a check for month number or name.
|
|
Wed Dec 02, 2009 3:04 pm |
|
 |
Joshua Youngblood
Joined: 14 Apr 2006 Posts: 82 Country: United States |
|
|
|
I installed the MP version on my machine because we are considering switching to it. The use of calendars is a neat feature. I read the help documentation pages entitled "Calendar Properties Dialog" and "About calendar," but I didn't see anything specifying whether or not the selected dates will be repeated for every year. We would like the job to run every year on the 1st of February and 1st of September. Is there a way to set this without having to select 2/1/10, 9/1/10, 2/1/11, 9/1/11, etc...?
|
|
Tue Dec 08, 2009 12:03 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
Hi.
For "inclusive" type calendars, you should key all dates in advance, in other words, define the date universe.
When choosing an inclusive calendar for a job, you typically should set the job to run every day, all days. Only the days in "inclusive" calendar are the days available to the job.
|
|
Tue Dec 08, 2009 4:42 pm |
|
 |
barefootguru
Joined: 10 Aug 2007 Posts: 195
|
|
|
|
Note you can import calendars from text files, so it's dead easy to programmatically generate a calendar for decades in advance and import it into 24x7.
Cheers
|
|
Tue Jan 05, 2010 4:17 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
Thank you. Indeed one can use Excel or other similar tool to generate date series and save them into a tab-separated file, then import that file into 24x7.
|
|
Tue Jan 05, 2010 7:16 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|