Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2010 17:31:31 +0700 (ICT)
From:      Olivier Nicole <Olivier.Nicole@cs.ait.ac.th>
To:        kernel@webrz.net
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: Buld echo
Message-ID:  <201001121031.o0CAVVIg046782@banyan.cs.ait.ac.th>
In-Reply-To: <4B4C4D2D.2040609@webrz.net> (message from Jos Chrispijn on Tue,  12 Jan 2010 11:21:33 %2B0100)
References:  <4B4C4D2D.2040609@webrz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> I have 35 log files that I want to flush once a day.
> In order to keep them exist I now do an 'echo > logfile.log'
> How can I do such in one command having the same effect on all log files?

You could have a look at newsyslog: it would purge and recreate the
files for you, including the right ownership and mode, plus it ciould
keep compressed back logs, and notify some process of your choice.

Bests,

Olivier



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