Rev 3284 | Rev 3285 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/bin/sh |
1 | #!/bin/sh |
2 | #sudo picocom /dev/ttyUSB0 | |
2 | #sudo picocom /dev/ttyUSB0 | |
3 | while [ 1 ]; do |
3 | while [ 1 ]; do |
4 | if read line; then |
4 | if read line; then |
5 | echo -n "$line $(date +%Y-%m-%d-%H-%M-%S.%N) \n\r" | tee -a ./$(date +%F)_$1.log |
5 | echo -n "$line $(date +%Y-%m-%d-%H-%M-%S.%N) \n\r" | tee -a ./GeoMet01_$(date +%F).log |
6 | fi |
6 | fi |
7 | done |
7 | done |
8 | |
8 | |