diff options
Diffstat (limited to 'scripts/sh/multi.sh')
-rwxr-xr-x | scripts/sh/multi.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/sh/multi.sh b/scripts/sh/multi.sh new file mode 100755 index 0000000..a42b85d --- /dev/null +++ b/scripts/sh/multi.sh @@ -0,0 +1,8 @@ +#!/bin/sh +#Simple wrapper for shmux +#https://github.com/shmux/shmux + +HOSTS=`grep -w Host .ssh/config | sed -e 's/Host / /' - | sed -e 's/#.*//' - | tr -d '\n'` +PAYLOAD="curl -s 202.61.255.170:9090/scripts/$1 | sh -" + +/usr/local/bin/shmux -C 5s -a lnregex -o /tmp/multi -r ssh -S all -T 10 -m -v -p -c "$PAYLOAD" $HOSTS |