summaryrefslogtreecommitdiff
path: root/src/hub/test-client
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2014-10-22 22:58:21 +0200
committerMarkus Grüneis <gimpf@gimpf.org>2014-10-22 22:58:57 +0200
commit08d29755d741920e71ef347e2fa3d5fdee0fd2b2 (patch)
tree8555e95b9ca2a2445b5a271efaf2e6e0a0eb369d /src/hub/test-client
parenthub: add stub for forwarding (diff)
hub: add support for datagram unix-sockets
Diffstat (limited to 'src/hub/test-client')
-rwxr-xr-xsrc/hub/test-client5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hub/test-client b/src/hub/test-client
index 0696bc5..a26ce75 100755
--- a/src/hub/test-client
+++ b/src/hub/test-client
@@ -1,7 +1,10 @@
#!/bin/sh
-echo import sample.json
+echo pipe: import sample.json
socat file:../../dat/sample.json,rdonly unix-client:/run/sfive/pipe
+echo pipe-gram: import sample-gram.json
+while read x; do echo "$x" | socat stdio unix-sendto:/run/sfive/pipegram; done < ../../dat/sample-gram.json
+
echo show query result
wget -q -S -O - 'http://localhost:8000/updates?from=2013-10-24T05:00:00Z&to=2013-10-24T00:05:20Z'