-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathclient.sh
executable file
·34 lines (18 loc) · 990 Bytes
/
client.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
set -x # -e
if [ -z "$PIQI" ]
then
PIQI="../../deps/piqi/priv/bin/piqi"
if [ ! -f "$PIQI" ]
then
PIQI="../../_build/default/lib/piqi/priv/bin/piqi"
fi
fi
$PIQI call http://localhost:8888/process-info -p
$PIQI call http://localhost:8888/process-info -h
$PIQI call -t json http://localhost:8888/process-info/list-processes
curl -v -X POST -H 'Accept: application/json' 'http://localhost:8888/process-info/list-processes'
$PIQI call -t json http://localhost:8888/process-info/process-info -- "<0.12.0>"
curl -v -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' --data-binary '{"pid" : "<0.12.0>"}' 'http://localhost:8888/process-info/process-info'
$PIQI call -t json http://localhost:8888/process-info/list-process-info -- -a -d -m
curl -v -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' --data-binary '["all", "dictionary", "messages"]' 'http://localhost:8888/process-info/list-process-info'