aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/mass
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-28 19:12:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-28 19:12:55 -0300
commit2ce49691634a67397a198ecfb0ba6e1668d05d3d (patch)
tree0a6e83737bf7f70b295c9b8691f03a400095cb2f /share/hydra/mass
parent2f0950268393d8eb73ec647edb09d8c90f4ae079 (diff)
downloadhydra-2ce49691634a67397a198ecfb0ba6e1668d05d3d.tar.gz
hydra-2ce49691634a67397a198ecfb0ba6e1668d05d3d.tar.bz2
Checking availability of commands
Diffstat (limited to 'share/hydra/mass')
-rwxr-xr-xshare/hydra/mass3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/hydra/mass b/share/hydra/mass
index 3aebd22..9bd83f9 100755
--- a/share/hydra/mass
+++ b/share/hydra/mass
@@ -5,6 +5,7 @@
# Issue commands with pssh
function mass_pssh {
+ hydra_check_command parallel-ssh
parallel-ssh -t 120 -P -p 4 -h $TMPWORK sudo $COMMAND
}
@@ -18,11 +19,13 @@ function mass_loop {
# Issue commands with dish
function mass_dish {
+ hydra_check_command dish
dish -f -p /dev/null -e "sudo $COMMAND" -g $TMPWORK
}
# Issue commands with mussh
function mass_mussh {
+ hydra_check_command mussh
mussh -H $TMPWORK -c "sudo $COMMAND"
}