Buld echo

Olivier Nicole Olivier.Nicole at cs.ait.ac.th
Tue Jan 12 10:31:45 UTC 2010


> 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


More information about the freebsd-questions mailing list