From 0a51d5a2156eddc70985d13351f2902124d09f10 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 19 Sep 2001 18:34:00 +0000 Subject: [PATCH] catch all the BatchMode s/ /=/ --- SSH.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SSH.pm b/SSH.pm index 6c4291f..8acd909 100644 --- a/SSH.pm +++ b/SSH.pm @@ -46,7 +46,7 @@ Calls ssh in batch mode. sub ssh { my($host, @command) = @_; - my @cmd = ($ssh, '-o', 'BatchMode yes', $host, @command); + my @cmd = ($ssh, '-o', 'BatchMode=yes', $host, @command); warn "[Net::SSH::ssh] executing ". join(' ', @cmd). "\n" if $DEBUG; system(@cmd); @@ -76,7 +76,7 @@ Connects the supplied filehandles to the ssh process (in batch mode). sub sshopen2 { my($host, $reader, $writer, @command) = @_; - open2($reader, $writer, $ssh, '-o', 'Batchmode=yes', $host, @command); + open2($reader, $writer, $ssh, '-o', 'BatchMode=yes', $host, @command); } =item sshopen3 HOST, WRITER, READER, ERROR, COMMAND [, ARGS ... ] @@ -87,7 +87,7 @@ Connects the supplied filehandles to the ssh process (in batch mode). sub sshopen3 { my($host, $writer, $reader, $error, @command) = @_; - open3($writer, $reader, $error, $ssh, '-o', 'Batchmode yes', $host, @command); + open3($writer, $reader, $error, $ssh, '-o', 'BatchMode=yes', $host, @command); } sub _yesno { -- 2.11.0