cron logging

Randal Koene (randalk@marina.psych.mcgill.ca)
Fri, 4 Jul 1997 14:30:37 -0400 (EDT)


Hi there,

This might be a wee-bit off kernel topic, but not entirely. I'm running a
number of periodic tests on a minimal installation of the 2.0.30 kernel
(mainly w.r.t. the kerneld), and use cron to do so. I need to keep a cron
log in /var/log/cron, but only for a short while. So logging has to be
on, but I would like to clear the log automatically every once in a while
-- or even better yet just clear the oldest couple'a thousand entries. I
was thinking of letting cron schedule that update (e.g. rm the file or
some such thing). Will this cause problems? It seems that cron never
closes and reopens the filehandle, as renaming the file has no effect and
logging continues on the renamed file. So would for instance erasing the
log and creating a new one totally confuse cron?

Thanks loads for any responses,
Randal

_______________________________________________________________________
RANDAL A. KOENE
PhD2, Neural Modeling Lab, Department of Psychology - McGill University
randalk@marina.psych.mcgill.ca
_______________________________________________________________________