summaryrefslogtreecommitdiffstats
path: root/cholerab/knut/clients/cnot
diff options
context:
space:
mode:
authortv <tv@xso>2011-08-13 15:40:17 +0200
committertv <tv@xso>2011-08-13 15:40:17 +0200
commit323da3f815a8a97c48e7f7c2cd6c49a3a7c60070 (patch)
treeb3d4494f8b1bb45492a4549de4589fda8ba5c72c /cholerab/knut/clients/cnot
parent82b8e2a0f3ed0b96793b2a2f7b98548c4d88bfb1 (diff)
cholerab knut cnot: add command line client
Diffstat (limited to 'cholerab/knut/clients/cnot')
-rwxr-xr-xcholerab/knut/clients/cnot/index14
1 files changed, 14 insertions, 0 deletions
diff --git a/cholerab/knut/clients/cnot/index b/cholerab/knut/clients/cnot/index
new file mode 100755
index 00000000..a9e4972d
--- /dev/null
+++ b/cholerab/knut/clients/cnot/index
@@ -0,0 +1,14 @@
+#! /bin/sh
+#
+#
+#
+set -euf
+
+host="$1"; shift
+port=42101
+
+params="$*"
+
+exec curl -vsS -X PUT --data-binary @- "http://$host:$port" <<EOF
+{"method":"clive","params":"$params","id":null}
+EOF