aboutsummaryrefslogtreecommitdiff
path: root/tools/demo.sh
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2014-10-09 20:17:48 -0400
committerjon-stumpf <jon.stumpf@gmail.com>2014-10-10 00:49:19 -0400
commit47843be139e6c797954c87043a80bf40e242f70d (patch)
treebd51eb5e938cff84ee072769f979c80eafb5e761 /tools/demo.sh
parent21d69f45cd5badf52e175fc234c5c7bd3c2aeb35 (diff)
downloadtrackermap-server-47843be139e6c797954c87043a80bf40e242f70d.tar.gz
trackermap-server-47843be139e6c797954c87043a80bf40e242f70d.tar.bz2
trackermap-server-47843be139e6c797954c87043a80bf40e242f70d.zip
Added comments to scripts in tools/
Diffstat (limited to 'tools/demo.sh')
-rwxr-xr-xtools/demo.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/demo.sh b/tools/demo.sh
index 50e48e496..f161858ac 100755
--- a/tools/demo.sh
+++ b/tools/demo.sh
@@ -1,3 +1,13 @@
+#
+# This test data assumes device "123456789012345" exists.
+#
+# INSERT INTO device ( name, uniqueid )
+# VALUES ( 'Test Device 1', 123456789012345 );
+#
+# Note: Not all shells support "echo -e" (e.g., dash, the default on Ubuntu).
+# This will cause an unknown device error for "-e". bash works.
+#
+
(echo -n -e "\
\$PGID,123456789012345*06\r\n\
\$GPRMC,184332.07,A,1929.459,S,02410.381,E,74.00,16.78,210410,0.0,E,A*2B\r\n\
@@ -22,4 +32,3 @@
\$GPRMC,184448.08,A,1927.962,S,02410.832,E,74.00,16.78,210410,0.0,E,A*26\r\n\
";) | nc -v localhost 5005
-