commit cecf4ec65e5a339598d962eb7bc5856f380dab96 parent 4c5e9bc17daa14b800dd5a46793df2d3652f5289 Author: hhvn <dev@hhvn.uk> Date: Fri, 23 Apr 2021 10:51:07 +0100 ctl.sh: control marvvin without restart Diffstat:
A | ctl.sh | | | 25 | +++++++++++++++++++++++++ |
1 file changed, 25 insertions(+), 0 deletions(-)
diff --git a/ctl.sh b/ctl.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +cd $(dirname $0) + +case "$1" in + join) + shift + for channel in "$@" + do + printf "JOIN %s\r\n" "$channel" > ./input.fifo + done + ;; + part) + shift + for channel in "$@" + do + printf "PART %s\r\n" "$channel" > ./input.fifo + done + ;; + quit) + shift + printf "QUIT :$@\r\n" > ./input.fifo + touch ./stop + ;; +esac