diff options
author | tv <tv@xso> | 2011-08-13 15:40:17 +0200 |
---|---|---|
committer | tv <tv@xso> | 2011-08-13 15:40:17 +0200 |
commit | 323da3f815a8a97c48e7f7c2cd6c49a3a7c60070 (patch) | |
tree | b3d4494f8b1bb45492a4549de4589fda8ba5c72c /cholerab/knut/clients/cnot | |
parent | 82b8e2a0f3ed0b96793b2a2f7b98548c4d88bfb1 (diff) |
cholerab knut cnot: add command line client
Diffstat (limited to 'cholerab/knut/clients/cnot')
-rwxr-xr-x | cholerab/knut/clients/cnot/index | 14 |
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 |