From: ivan Date: Wed, 19 Sep 2001 18:34:00 +0000 (+0000) Subject: catch all the BatchMode s/ /=/ X-Git-Tag: NET_SSH_0_03~1 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=0a51d5a2156eddc70985d13351f2902124d09f10;hp=8b6b796aa3807ef77162ef10fd5065ae25050820;p=Net-SSH.git catch all the BatchMode s/ /=/ --- 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 {