[RDD] [Off Topic] Serial Port logger?
waynemerricks at thevoiceasia.com
Fri Jan 10 14:56:40 EST 2014
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,
removal, and mailing of log files. Each log file may be handled
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.
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.
> 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
> Rivendell-dev at lists.rivendellaudio.org
More information about the Rivendell-dev