Week-end overrides/multiple cron entries

Jeff Weisberg jaw+arguslist at tcp4me.com
Sat Jan 30 12:40:45 EST 2010


On 30 Jan, 2010, at 3:50, Malte Weber wrote:

> 	cron "2 16 * * * 1-4" {
> 	cron "2 12 * * * 5" {
>
> This works excellently from Monday thru Thursday, but the second  
> override for the weekend is not honoured.
> We are not really sure whether argus is able to handle two cron  
> entries on a single service or not.
>
> Can anybody provide us with a solution to this issue?


you have too many *s, so your day-of-week is ignored.

	min hour day month day-of-week

you want:
	cron "2 16 * * 1-4"
	cron "2 12 * * 5"

or, if you are using the latest development code, you can say:

	Service Prog {
	    # ...

	    Schedule testing {
	        *		=> no
   		mon 0700 - 1600	=> yes
   		tue 0700 - 1600	=> yes
		wed 0700 - 1600	=> yes
   		thu 0700 - 1600	=> yes
		fri 0700 - 1200 => yes
	    }





More information about the Arguslist mailing list