From owner-cvs-all Sun Dec 10 7:52: 7 2000 From owner-cvs-all@FreeBSD.ORG Sun Dec 10 07:52:05 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 45F1837B401 for ; Sun, 10 Dec 2000 07:52:05 -0800 (PST) Received: (qmail 50006 invoked by uid 100); 10 Dec 2000 15:52:04 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14899.42659.948066.378479@guru.mired.org> Date: Sun, 10 Dec 2000 09:52:03 -0600 (CST) To: Brian Somers Cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/etc crontab In-Reply-To: <47352068@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Somers types: > > Brian Somers writes: > > > Dag-Erling Smorgrav 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.