mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
2013-06-26 Sancho Lerena <slerena@artica.es>
* 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
This commit is contained in:
parent
d1f0582c4d
commit
ca47644a7f
@ -1,3 +1,9 @@
|
|||||||
|
2013-06-26 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* util/plugin/pandora_loadgen.pl,
|
||||||
|
util/plugin/ssh_pandoraplugin.sh: Fixed small problems with
|
||||||
|
plugins provided as sample.
|
||||||
|
|
||||||
2013-06-26 Ramon Novoa <rnovoa@artica.es>
|
2013-06-26 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* pandora_server.redhat.spec,
|
* pandora_server.redhat.spec,
|
||||||
|
@ -21,7 +21,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
|
||||||
my $max = 10;
|
my $max = 100;
|
||||||
my $min = 0;
|
my $min = 0;
|
||||||
my $alphanumeric = 0;
|
my $alphanumeric = 0;
|
||||||
|
|
||||||
@ -58,12 +58,7 @@ sub pandora_random {
|
|||||||
# Main code -------------------------------------------------------------
|
# Main code -------------------------------------------------------------
|
||||||
# -----------------------------------------------------------------------
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
if ($#ARGV == -1){
|
|
||||||
help();
|
|
||||||
}
|
|
||||||
|
|
||||||
GetOptions(
|
GetOptions(
|
||||||
"" => sub { help() },
|
|
||||||
"h" => sub { help() },
|
"h" => sub { help() },
|
||||||
"help" => sub { help() },
|
"help" => sub { help() },
|
||||||
"string+" => \$alphanumeric,
|
"string+" => \$alphanumeric,
|
||||||
|
@ -61,4 +61,5 @@ while getopts ":hp:t:c:u:" optname
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
ssh -p $PORT $USER@$HOST $COMMAND
|
ssh -p $PORT $USER@$HOST $COMMAND 2> /dev/null
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user