Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2003 18:08:53 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Chris <racerx@makeworld.com>
Cc:        stuart.gibson@bridgeman.co.uk
Subject:   Re: crontab
Message-ID:  <20031126180853.GB9622@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <3FC4E92A.2030602@makeworld.com>
References:  <3FC4D7D4.11526.C30C22@localhost> <3FC4E747.2000503@daleco.biz> <3FC4E92A.2030602@makeworld.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031126180853.GB9622>