Logging serial port data to file
Michael Abbott
michael at araneidae.co.uk
Mon Mar 29 20:11:56 UTC 2010
On Tue, 30 Mar 2010, Michael Hagedorn wrote:
> while read -r; do
> echo "[$(date)]: $REPLY"
> >>/usb/BigDrive/CurrentCost/CurrentCost_$(date +"%Y_%m_%d").log
> done
>
>
> In mine is the .log file opened for writing for every line or is it
> kept open until the name changes?
The .log file will be opened (and the $(date) call made) on each line
read.
> Should I worry about that?
I doubt it.
More information about the busybox
mailing list