logrotate is your friend.

From the man pages:

 logrotate  is  designed to ease administration of systems that generate
large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily,
       weekly, monthly, or when it grows too large.

       Normally, logrotate is run as a daily cron job.

from what I remember you add your log file to the logrotate config and it rotates/emails/compresses/whatever on the schedule you specify.

Regards,

Wayne Merricks
The Voice Asia

On 10/01/14 19:34, Alan Smith wrote:
I'll research it, but I forgot a little detail:

Serial Logger service (for windows) rotates the files on a schedule that I specify: Such as daily (what I use). At midnight it closes out the day's file, and creates a new one. The filename of each file is the date.

EASMON works similarly, but I think its rotation is fixed to a weekly bases. IMHO that is too long-if you have a RWT on Tuesday, but power fails on Thursday, you've lost the log. We have UPS systems, but I still prefer daily rotations.

-Alan

On 1/10/2014 1:28 PM, Karl Koscher wrote:
Would something as simple as this work?

cat /dev/ttySx >> easlog.txt


_______________________________________________
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