crontab
Matthew Seaman
m.seaman at infracaninophile.co.uk
Wed Nov 26 10:09:31 PST 2003
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
> crons, can something like this be done with the /etc/periodic/daily,
> 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="/var/log/daily.log"
weekly_output="/var/log/weekly.log"
monthly_output="/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
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031126/b4434c75/attachment.bin
More information about the freebsd-questions
mailing list