From d22cbc4b4d003342f45192c8f175aefc7719a0fa Mon Sep 17 00:00:00 2001 From: slerena Date: Wed, 26 Jun 2013 16:21:36 +0000 Subject: [PATCH] 2013-06-26 Sancho Lerena * util/plugin/pandora_loadgen.pl, util/plugin/ssh_pandoraplugin.sh: Fixed small problems with plugins provided as sample. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 6 ++++++ pandora_server/util/plugin/pandora_loadgen.pl | 7 +------ pandora_server/util/plugin/ssh_pandoraplugin.sh | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index d611504551..b02e1feefc 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,9 @@ +2013-06-26 Sancho Lerena + + * util/plugin/pandora_loadgen.pl, + util/plugin/ssh_pandoraplugin.sh: Fixed small problems with + plugins provided as sample. + 2013-06-26 Ramon Novoa * pandora_server.redhat.spec, diff --git a/pandora_server/util/plugin/pandora_loadgen.pl b/pandora_server/util/plugin/pandora_loadgen.pl index 454d4a9f3c..90fce17831 100644 --- a/pandora_server/util/plugin/pandora_loadgen.pl +++ b/pandora_server/util/plugin/pandora_loadgen.pl @@ -21,7 +21,7 @@ use strict; use warnings; use Getopt::Long; -my $max = 10; +my $max = 100; my $min = 0; my $alphanumeric = 0; @@ -58,12 +58,7 @@ sub pandora_random { # Main code ------------------------------------------------------------- # ----------------------------------------------------------------------- -if ($#ARGV == -1){ - help(); -} - GetOptions( - "" => sub { help() }, "h" => sub { help() }, "help" => sub { help() }, "string+" => \$alphanumeric, diff --git a/pandora_server/util/plugin/ssh_pandoraplugin.sh b/pandora_server/util/plugin/ssh_pandoraplugin.sh index ae3a14dec8..e2a8e64ec8 100755 --- a/pandora_server/util/plugin/ssh_pandoraplugin.sh +++ b/pandora_server/util/plugin/ssh_pandoraplugin.sh @@ -61,4 +61,5 @@ while getopts ":hp:t:c:u:" optname done -ssh -p $PORT $USER@$HOST $COMMAND +ssh -p $PORT $USER@$HOST $COMMAND 2> /dev/null +