summaryrefslogtreecommitdiff
path: root/src/hub/test-client
diff options
context:
space:
mode:
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'