Re: Buld echo
On 1/12/2010 12:21 PM, Jos Chrispijn wrote: 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 use truncate(1). Something like: truncate -s 0 file1 file2 file2 ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Buld echo
> 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Buld echo
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? Jos Chrispijn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"