aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-30 11:38:45 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-30 11:38:45 +1300
commit734aaecb5f1fb07869873801080609c24b459b56 (patch)
tree89dc828864b5571da13ce3799c79852c8a8a66a7
parentc0dcfba843d7a0789aaa75c049dd714d8f843a6d (diff)
downloadtraccar-server-734aaecb5f1fb07869873801080609c24b459b56.tar.gz
traccar-server-734aaecb5f1fb07869873801080609c24b459b56.tar.bz2
traccar-server-734aaecb5f1fb07869873801080609c24b459b56.zip
Fix UDP communication for hex tool
-rwxr-xr-xtools/hex.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hex.sh b/tools/hex.sh
index 6d49fafdf..cfae14bb6 100755
--- a/tools/hex.sh
+++ b/tools/hex.sh
@@ -15,7 +15,7 @@ then
fi
send_hex_udp () {
- echo $2 | xxd -r -p | nc -u localhost $1
+ echo $2 | xxd -r -p | nc -u -w 0 localhost $1
}
send_hex_tcp () {
@@ -23,7 +23,7 @@ send_hex_tcp () {
}
send_text_udp () {
- echo -n -e $2 | nc -u localhost $1
+ echo -n -e $2 | nc -u -w 0 localhost $1
}
send_text_tcp () {