From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 10:09:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B4D416A4CE for ; Wed, 26 Nov 2003 10:09:31 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83E8E43FE0 for ; Wed, 26 Nov 2003 10:09:29 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hAQI8rqt010072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 26 Nov 2003 18:09:23 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hAQI8rvD010071; Wed, 26 Nov 2003 18:08:53 GMT (envelope-from matthew) Date: Wed, 26 Nov 2003 18:08:53 +0000 From: Matthew Seaman To: Chris Message-ID: <20031126180853.GB9622@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Chris , "Kevin D. Kinsey, DaleCo, S.P." , stuart.gibson@bridgeman.co.uk, freebsd-questions@freebsd.org References: <3FC4D7D4.11526.C30C22@localhost> <3FC4E747.2000503@daleco.biz> <3FC4E92A.2030602@makeworld.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eJnRUKwClWJh1Khz" Content-Disposition: inline In-Reply-To: <3FC4E92A.2030602@makeworld.com> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org cc: stuart.gibson@bridgeman.co.uk Subject: Re: crontab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 18:09:31 -0000 --eJnRUKwClWJh1Khz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 26, 2003 at 11:55:54AM -0600, Chris wrote: [ Redirecting output of cron jobs ] > Very cool! Now, what if you do the same, but instead of the normal=20 > crons, can something like this be done with the /etc/periodic/daily,=20 > weekly, and monthly routines? If you don't have one already, create a /etc/periodic.conf file, and within it set some variables: daily_output=3D"/var/log/daily.log" weekly_output=3D"/var/log/weekly.log" monthly_output=3D"/var/log/monthly.log" This will direct the output to those log files, rather than e-mailing to root. If you use precisely those file names, the log files will be automatically cycled by newsyslog(8). Refer to /etc/defaults/periodic.conf for all the other stuff you can modify. /etc/periodic.conf has exactly the same relation to /etc/defaults/periodic.conf as /etc/rc.conf does to /etc/defaults/rc.conf. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --eJnRUKwClWJh1Khz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/xOw1dtESqEQa7a0RAg5GAJ9J+eFbQg0QqtPNszduggF9FD48BgCeNWG1 YDufetn0tcTxFH6TirM/3NQ= =olCU -----END PGP SIGNATURE----- --eJnRUKwClWJh1Khz--