[time-nuts] Serial Port Logging Script?

Gary Chatters gcarlist at garychatters.com
Mon Jan 22 22:35:43 UTC 2007


If all you want to do is copy whatever comes in the serial port to a 
file, "cat" would probably do what you need.   Use awk (gawk) if you 
want to prepend the current date/time.

Gary


Jason Rabel wrote:
> I did some Googling but kept hitting dead ends, so I figured I would hit you
> guys up for some help.
>
> I finally got my Shera board working (Thanks to James Miller for helping me
> finally get it going), and I would like to record the serial data to process
> later.
>
> Does anyone have a simple Perl (or C) script to write data from a serial
> port to a file? Preferably something with no dependencies, but I don't mind
> having to install a couple Perl modules if need be.
>
> I tried the logserial program that I found in the FreeBSD ports tree, but it
> keeps putting extra returns in between each row of data.
>
> Jason
>   





More information about the Time-nuts_lists.febo.com mailing list