git ssb

0+

cel / electrumc



Tree: fb6db7d0171f85ee76abb0f0ee5f1827c5eec31e

Files: fb6db7d0171f85ee76abb0f0ee5f1827c5eec31e / test.sh

340 bytesRaw
1#!/bin/sh
2
3nc6 -l -p 9898 <<EOF | diff -u - /dev/fd/3 3<<EOF3 &
4{"jsonrpc": "2.0", "result": {"confirmed": 0, "unconfirmed": 0}, "id": 0}
5EOF
6{"id":0,"method":"foo","params":"bar"}
7EOF3
8sleep 0.1
9./electrumc ::1:9898:t foo \"bar\" | diff -u - /dev/fd/3 3<<EOF3
10{"jsonrpc": "2.0", "result": {"confirmed": 0, "unconfirmed": 0}, "id": 0}
11EOF3
12

Built with git-ssb-web