On Tuesday 30 March 2010 04:35, Rob Landley wrote: > 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
If you are sure you have nc which understands -f. Standard one does not. > > Ideally with time stamps. > > netcat -f /dev/ttyS0 | while read i; do echo $(date +%s) "$i"; done > file.txt Or: something | svlogd -tt LOGDIR svlogd has all typical things for logger tools like log rotation, see http://man.cx/svlogd%288%29 -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
