Thomas, You could then, as suggested by Martin, run cron every sunday and then have a script check the week for you (bash will do it). You can get the week number with: 'date +%W' (0~52). Now, to check if it is indeed the 3rd week, divide that by 3 and if the reminder is 0 that's the week you schedule downtime (translated to bash: 'expr $(date +%W) % 3').
Rafael On Mon, Jan 4, 2010 at 8:51 AM, <[email protected]> wrote: > Hi Marty > > youre right I mean every 3rd Sunday not the 3th Sunday per month... > > so, how can I that schedule with crontab, sorry I don't know... > > Greets > Thomas > > -------- Original-Nachricht -------- > > Datum: Mon, 4 Jan 2010 22:36:06 +1100 > > Von: Martin Barry <[email protected]> > > An: Opsview Users <[email protected]> > > Betreff: Re: [opsview-users] schedule downtime > > > $quoted_author = "sOeMe" ; > > > > > > thanks for the input, but an crontab entry do not fix my problem, then > > it > > > is possible that the 3th sunday is not between 15-21 ... > > > > Then you mean something different to what most people would understand > > "3rd > > Sunday of the month" to be. > > > > > > > I start at 10 January 2010 (first Sunday) the 3th Sunday is now the 31 > > January > > > and so on > > > > Any reason you are ignoring 3 January 2010 which is also a Sunday? > > > > Or have we all misunderstood and you meant "every 3rd Sunday"? That would > > require being scheduled every Sunday by CRON and then doing some kind of > > "day of year" or "week of year" calculation taking into account any > offset > > like which Sunday it first ran. > > > > cheers > > Marty > > _______________________________________________ > > Opsview-users mailing list > > [email protected] > > http://lists.opsview.org/lists/listinfo/opsview-users > > -- > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 > - > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser > _______________________________________________ > Opsview-users mailing list > [email protected] > http://lists.opsview.org/lists/listinfo/opsview-users >
_______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
