[RDD] [Off Topic] Serial Port logger?

Karl Koscher supersat at uwave.fm
Fri Jan 10 15:34:18 EST 2014


I think so. If you use the "copytruncate" option of logrotate, it will copy
the current log to an archived log file and clear out the current log. I
just confirmed that doing cat >> logfile will continue to append to logfile
even after truncation.


On Fri, Jan 10, 2014 at 12:24 PM, Alan Smith <alansmith at flinn.com> wrote:

> WOW!  Its THAT easy???  (okay, I say that now until I get into trying it!).
>
> Sorry, I'm a windows guy...make that "former windows guy". Windows does
> NOT like other programs messing with files while they are in use.
>
> If I understand it, I can use cat to create the initial log file, while
> logrotate will automatically empty the contents of that file into a new
> file daily using the current date as the filename, and even email it, and
> delete the old ones.
>
> SWEET!
>
> -Alan
>
> _______________________________________________
> Rivendell-dev mailing list
> Rivendell-dev at lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://caspian.paravelsystems.com/pipermail/rivendell-dev/attachments/20140110/57a467b1/attachment.html>


More information about the Rivendell-dev mailing list