12 lines
169 B
Bash
Executable File
12 lines
169 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z $1 ]; then
|
|
echo "usage: $0 host"
|
|
exit 1;
|
|
fi
|
|
|
|
cat << EOD | nc $1 2222
|
|
{"id":0, "method":"JSONRPC.Hello"}
|
|
{"id":1, "method":"JSONRPC.Tokens"}
|
|
EOD
|