summaryrefslogtreecommitdiffstats
path: root/cholerab/knut/clients/cnot/index
blob: d17329f4c947f40f66763839a5ee73a4893b9760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh
#
# cnot - cholerab live command line notification client, bitch!
#
# usage: cnot hostname message...
#
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