aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/mass
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 22:32:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 22:32:55 -0300
commit3c21b236c8225633b5d3c4efce46968703cb824e (patch)
tree962488145e57929d4b450af4949bcfdbfe6af7b1 /share/hydra/mass
parente6d47c2092c352b0c9a0a72caee8638889577021 (diff)
downloadhydra-3c21b236c8225633b5d3c4efce46968703cb824e.tar.gz
hydra-3c21b236c8225633b5d3c4efce46968703cb824e.tar.bz2
Back to pssh
Diffstat (limited to 'share/hydra/mass')
-rwxr-xr-xshare/hydra/mass7
1 files changed, 3 insertions, 4 deletions
diff --git a/share/hydra/mass b/share/hydra/mass
index 401d1af..1745df3 100755
--- a/share/hydra/mass
+++ b/share/hydra/mass
@@ -4,12 +4,11 @@
#
# Issue commands with pssh
-# See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549117
function mass_pssh {
echo "Issuing $COMMAND on multiple nodes..."
hydra_set_tmpfile nodes
hydra $HYDRA nodes > $TMPWORK
- parallel-ssh -h $TMPWORK -p 4 $COMMAND
+ parallel-ssh -P -h $TMPWORK $COMMAND
hydra_unset_tmpfile $TMPWORK
}
@@ -36,7 +35,7 @@ function mass_mussh {
echo "Issuing $COMMAND on multiple nodes..."
hydra_set_tmpfile nodes
hydra $HYDRA nodes > $TMPWORK
- mussh -b -H $TMPWORK -c "$COMMAND"
+ mussh -H $TMPWORK -c "$COMMAND"
hydra_unset_tmpfile $TMPWORK
}
@@ -62,4 +61,4 @@ fi
# Execute commands in hosts
BASEDIR="/tmp"
-mass_mussh $COMMAND
+mass_pssh $COMMAND