Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Dec 2003 08:30:01 +0100
From:      "Zoran Kolic" <kolicz@eunet.yu>
To:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   re: newsyslogwithdate-extension-logfiles
Message-ID:  <20031207072728.GA623@kolic.net>

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

   Dear Michael!
   You know, that every
file has additional data
about time, when it was
created etc. If you have
good reason to read or ar-
chive log files that way,
put it on separate loca-
tion and use cron to make
that file. Change log
file in /var/log every
morning at ie. 7 am. Cron
would read file named
"my.log.0.gz" and rename
it as "my.log.date.gz".
date with"+" will make
all for you (I suppose).
Better to say, not cron,
but little perl or shell
script you write.
   After all put it on
CD and forget. You could
use cron to make your CD?
I don't like the idea,
but it's possible.
   Best regards

              ZK




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