home/workmac: ssh-root-loop shell function
This commit is contained in:
parent
8a08f506ab
commit
76d3ffde1c
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue