From ecde4d3f0b17ad7351b1b2cf39178e23384c6907 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 8 Jun 2012 11:37:15 +0000 Subject: [PATCH] support fanout input git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13043 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/pscp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/pscp b/xCAT-client/bin/pscp index d1c562faa..bb405cc2e 100755 --- a/xCAT-client/bin/pscp +++ b/xCAT-client/bin/pscp @@ -18,6 +18,7 @@ use POSIX qw(:signal_h :errno_h :sys_wait_h); my $interface; GetOptions( "interface=s" => \$interface, + "f|fanout=s" => \$fanout, ); my %nodehdl; my $xcathost='localhost:3001'; @@ -28,11 +29,18 @@ if ($ENV{XCATHOST}) { sub usage { print $_[0]; - print "Usage: pscp [-i ] [SCP OPTIONS...] FILE... :\n"; + print "Usage: pscp [ -f fanout] [-i ] [SCP OPTIONS...] FILE... :\n"; exit 1; } -my $pshmaxp = 64; #TODO: should this be server dictated or local conf? +my $pshmaxp = 64; +if ($fanout) { # see if they overroad the fanout from the command line + $pshmaxp=$fanout; +} +if ($ENV{XCATPSHFANOUT}) { # env variable rules + $pshmaxp=$ENV{XCATPSHFANOUT}; +} + # Processing arguments usage unless @ARGV;