cron behavior
will
willg at bluesock.org
Mon Dec 31 13:14:21 EST 2001
I don't know if you can do what you're trying to do. The 1/4 notation
will actually mean every 4th weekday. So that should be kicking off at
4:15 on sundays and thursdays, i think. Something like that.
You can do 1 in the month-day column and that'll kick off on the first of
the month--which isn't quite what you're looking for. I don't think you
can specify "fourth monday" via cron.
Another thing you could do is have cron kick off a perl script every
Monday. That perl script then checks to see if it's a fourth Monday or
not and if so then runs your backup job.
hth--
/will
On Mon, 31 Dec 2001, jbk wrote:
> I want my full backup script to run every fourth Monday and
> I thought the following sintax would do that, but this
> morning it ran again, this is the second Monday in the
> cycle.
>
> '15 4 * * 1/4 /etc/backup/backup monday
> >>/var/log/backup/tape.log'
>
> Does this syntax only work on the HOUR & DAYS_OF_MONTH
> fields? The man page doesn't say.
>
> The backup script is dependent on the DAY_OF_WEEK field, I
> could change this but it would be two weeks of testing
> again.
>
> Jim Kelly-Rand
>
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss
>
--
whatever it is, you can find it at http://www.bluesock.org/~willg/
except Will--you can only see him in real life.
More information about the Discuss
mailing list