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 <[email protected]> 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
> [email protected]
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to