]> gitweb.fluxo.info Git - hydra.git/commitdiff
Back to pssh
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 28 Sep 2011 01:32:55 +0000 (22:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 28 Sep 2011 01:32:55 +0000 (22:32 -0300)
share/hydra/mass

index 401d1af8aae3f853fb2a5b10055aa137ee7e6c2c..1745df3e011de76a657dbef68ec45b51dbebccaf 100755 (executable)
@@ -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