Date: Sun, 10 Dec 2000 09:52:03 -0600 (CST) From: Mike Meyer <mwm@mired.org> To: Brian Somers <brian@Awfulhak.org> Cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/etc crontab Message-ID: <14899.42659.948066.378479@guru.mired.org> In-Reply-To: <47352068@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Brian Somers <brian@Awfulhak.org> types:
> > Brian Somers <brian@Awfulhak.org> writes:
> > > Dag-Erling Smorgrav <des@ofug.org> writes:
> > > > 59 1 * * 1-5,7 root periodic daily
> > > > 59 1 * * 6 root periodic weekly
> > > Using 0-5 is the same as 1-5,7 :-)
> >
> > Yes, I realized that afterwards. But - what do people think? Should I
> > commit the proposed change?
> I don't see anybody complaining (given that the second line says
> ``periodic daily weekly'').
>
> It makes things a bit un-orthogonal though. Maybe something like
> this would be more appropriate:
Since we're considering alternatives, how about something like this
for /etc/periodic/daily/99?.weekly:
#!/bin/sh
#
# Run the weekly tasks
#
case `date +%w` in
6) echo ""
echo "Weekly tasks (output mailed separately)" ;
periodic weekly 2>&1 | sendmail root & && rc=0 || rc=3;;
esac
The same solution works for monthly. Sorting out the order for
weekly/local/monthly needs to be done - then again, this also allows
you to change that order, which the other doesn't.
<mike
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14899.42659.948066.378479>
