Site Tools


linux:raspberry:wde:scripts:reader

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:raspberry:wde:scripts:reader [2016/02/12 21:19] lunetikklinux:raspberry:wde:scripts:reader [2018/12/20 17:40] – Discussion status changed lunetikk
Line 39: Line 39:
 BAUD=\,b9600 BAUD=\,b9600
 CMD="$SOCAT $DEV$BAUD STDOUT" CMD="$SOCAT $DEV$BAUD STDOUT"
- 
  
 while read -r line while read -r line
 do do
-    echo "$(date +'%d.%m.%Y;%H:%M:%S;')$line" >> $FILE+    echo "$(date +'%d.%m.%Y;%H:%M:%S;')$line">> $FILE
 done < <( $CMD ) done < <( $CMD )
 </code> </code>
Line 60: Line 59:
 ==== Output ==== ==== Output ====
  
-There will be a new logfile with another date everyday. +There will be a new logfile with another date everyday. 
 + 
 +Examplefile 06_05_2015.log:
  
-Examplefile 05_06_2015.log: 
 <code> <code>
 06.05.2015;16:00:26;$1;1;;34,8;71,1;;;33,1;;;;33;;;;39;;;;;;;;;0 06.05.2015;16:00:26;$1;1;;34,8;71,1;;;33,1;;;;33;;;;39;;;;;;;;;0
Line 74: Line 74:
  
 \\ \\
-\\ +~~DISCUSSION:closed~~ 
-~~DISCUSSION~~+ 
linux/raspberry/wde/scripts/reader.txt · Last modified: 2019/12/10 14:43 by lunetikk