summaryrefslogtreecommitdiffstats
path: root/scripts/sh/multi.sh
blob: a42b85d6ff2274e8ebdbf27ab4a334e2fbae1718 (plain)
1
2
3
4
5
6
7
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