aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-10 11:15:55 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-10 11:15:55 +1200
commitfc7d01e6ab414b8eba9b112b3dc74e5099e1d94a (patch)
tree3d49bbb0a25b97a968dd39bfe82a260d7c5aa55f /tools
parentee7452124062845401afb0920d1569217595b8c5 (diff)
downloadtrackermap-server-fc7d01e6ab414b8eba9b112b3dc74e5099e1d94a.tar.gz
trackermap-server-fc7d01e6ab414b8eba9b112b3dc74e5099e1d94a.tar.bz2
trackermap-server-fc7d01e6ab414b8eba9b112b3dc74e5099e1d94a.zip
A script to test commands
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test-commands.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/test-commands.py b/tools/test-commands.py
new file mode 100755
index 000000000..6c4896a46
--- /dev/null
+++ b/tools/test-commands.py
@@ -0,0 +1,12 @@
+#!/usr/bin/python
+
+import socket
+
+s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+s.connect(("localhost", 5001))
+s.send("imei:123456789012345,tracker,151030080103,,F,000101.000,A,5443.3834,N,02512.9071,E,0.00,0;")
+
+while True:
+ print s.recv(1024)
+
+s.close()