On Wednesday 24 March 2010 11:16:59 Michael Hagedorn wrote:
> Hi
> I am quite new to the busybox and need some help. I am trying to modify
> an embedded system on a NAS based on a STR8100 series hardware platform.
> I have the SDK. Busybox is installed on it and I can build it successfully.
>
> I want to log data arriving on the serial port (I am using a USB to
> serial device) to a file.

netcat -f /dev/ttyS0 > file.txt

> Ideally with time stamps.

netcat -f /dev/ttyS0 | while read i; do echo $(date +%s) "$i"; done > file.txt

Rob
-- 
Latency is more important than throughput. It's that simple. - Linus Torvalds
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to