[Techtalk] Age-old cron problem
Wim De Smet
kromagg at gmail.com
Mon Dec 10 12:26:42 UTC 2007
On Dec 10, 2007 11:09 AM, Conor Daly <c.daly at met.ie> wrote:
> [...]
> Every second Sunday, OTOH, looks possible.
>
> 23 0-23/2 * * * echo "run 23 minutes after midn, 2am, 4am ..., everyday"
> 5 4 * * sun echo "run at 5 after 4 every sunday"
>
> So, by inference,
>
> 5 4 * * sun/2 echo "run at 5 after 4 every second sunday"
>
> should work?
Don't think so as /2 is supposed to be only a shorthand for ranges,
i.e. 0-12/2 = 0,2,4,6,8,10,12. I don't think it applies here. I'd
think the way to go would be to run every sunday then check for
yourself.
greets,
Wim
More information about the Techtalk
mailing list