blob: f2eef3e50eeee96b1d45fc6ba1d095d1543659b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#! /bin/bash
function send_data
{
trap send_data SIGPIPE
while read line
do
case $line in
\$GPVTG*)
echo "$line"
sleep 1
;;
*)
echo "$line"
;;
esac
done <track/all.txt >/tmp/gpsdata
}
send_data
|