wallet-core/packages/anastasis-webui/watch/send_reload.sh
2022-06-08 15:19:26 -03:00

8 lines
178 B
Bash
Executable File

#!/bin/bash
COMMAND='{"type":"RELOAD"}'
LEN=$(printf '%x\n' ${#COMMAND})
OPCODE=81
cat <(echo -n $OPCODE$LEN | xxd -r -p) <(echo -n $COMMAND) | socat - UNIX-SEND:./send_signal