home/workmac: ssh-root-loop shell function

This commit is contained in:
Trolli Schmittlauch 2025-12-04 13:05:30 +01:00
parent 8a08f506ab
commit 76d3ffde1c

View file

@ -8,6 +8,15 @@
for x in $1; do echo $x; ${pkgs.openssh}/bin/ssh $x.fcio.net -o StrictHostKeyChecking=no -C "$2"; done
}
ssh-root-loop () {
setopt shwordsplit
local hosts=$1
local cmd=$2
for x in $1; do echo $x; ${pkgs.openssh}/bin/ssh root@$x.fcio.net -o StrictHostKeyChecking=no -C "$2"; done
}
ssh-loop-parallel () {
setopt shwordsplit
local hosts=$1