[nmglug] Logging a serial port

Aaron Birenboim eunichs at boim.com
Sun Oct 8 08:03:19 PDT 2006


On Fri, 2006-10-06 at 16:02 -0700, Tim Emerick wrote:
> I have a device that spits out information via it's RS-232 serial port
> (9600/8/n/1).  I can monitor it using minicom.  
>  
> I would like to have a daemon or something that monitors the serial
> port and logs everything to a log file.  I would also like the logs
> rotated or a new log created at a specified interval.
> Daily/Weekly/Monthly/FileCap.
>  
> Can anybody suggest a package?  
>  
> Using Debian btw.

We used to use tip to talk to embedded HW over serial.
It was real nice.
*BSD had it, I'm not as sure about LINUX.
One would hope there was something similar.

It was a command line utility, where you could configure the 9600/8//1
settings (and device),
then your shell turns into a basic terminal.

Want to log it?
How about:

script /var/log/UPS.log
tip ttyS1

or similar...

              aaron






More information about the nmglug mailing list