Jump to content

Logo

* * * - - 1 votes

Solved : How to build a rule to run a job the first 5 days of each month except Sundays?


4 replies to this topic

#1 ejc

    Junior Member

  • Members
  • Pip
  • 26 posts

Posted 02 April 2009 - 01:37 PM

Hello,

How can I build a rule to run a job the first 5 days of each month except Sunday?

I'm running DollarU 5.1.3.

Edited by ejc, 02 April 2009 - 01:43 PM.


#2 men

    Hero Member

  • Root Admin
  • PipPipPipPip
  • 4,389 posts
  • Gender:Male
  • Location:Europe

Posted 02 April 2009 - 01:47 PM

Hello,

if you need to schedule a job the first 5 days of the month except Sunday (meaning that these days can be working, closing or holidays) create 5 Rules with the following characteristics:

Period : 1 Month
Position : 1 to 5, Calendar, from the beginning of the month.
Mask :
Working Closed Holidays
Mo Y Y Y
Tu Y Y Y
We Y Y Y
Th Y Y Y
Fr Y Y Y
Sa Y Y Y
Su Y N N
No offset
In case your Calendars include working Sundays, change the last line to N N N.

Michel

#3 ejc

    Junior Member

  • Members
  • Pip
  • 26 posts

Posted 02 April 2009 - 01:52 PM

Thanks!

By the way, is there a command to let me check the schedule of a job over a period?

#4 men

    Hero Member

  • Root Admin
  • PipPipPipPip
  • 4,389 posts
  • Gender:Male
  • Location:Europe

Posted 02 April 2009 - 01:56 PM

Yes,

use uxlst prv.

You can filter it on the job(s) you want, and over the period you want.

To have all jobs scheduled for April 3rd for instance, use:

uxlst prv exp ses=* upr=* mu=* dsince=04/03/2009 tsince=0000 dbefore=04/03/2009 tbefore=2359

(considering the date format as MM/DD/YYYY).

Michel

#5 ejc

    Junior Member

  • Members
  • Pip
  • 26 posts

Posted 02 April 2009 - 01:57 PM

Thanks again!

No more questions right now ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users