Subject: | possible bug |
Date: | Tue, 16 Feb 2016 14:11:05 -0500 |
To: | bug-Net-SSH-Perl [...] rt.cpan.org |
From: | "Burdish, Kevin" <kevin.burdish [...] nytimes.com> |
Hi Steffen!
When running Net-SSH-Perl-1.42
<http://search.cpan.org/~schwigon/Net-SSH-Perl-1.42/>
I get the following warnings (appears to be at $ssh->login( $user, $pass );
line)
Use of uninitialized value $blob in split at
/Library/Perl/5.10.0/Net/SSH/Perl/Key.pm line 41, <$fh> line 4.
Use of uninitialized value $ssh_name in hash element at
/Library/Perl/5.10.0/Net/SSH/Perl/Key.pm line 42, <$fh> line 4.
Use of uninitialized value in subroutine entry at
/Library/Perl/5.10.0/Net/SSH/Perl/Key.pm line 45, <$fh> line 4.
Use of uninitialized value within @_ in concatenation (.) or string at
/Library/Perl/5.10.0/Net/SSH/Perl/Key.pm line 13, <$fh> line 4.
All else appears to work fine, just thought you might like to know.
Please let me know if I can provide additional info.
Thanks!
Kevin
uname -a
Darwin xxx.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41
PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
perl -v
This is perl, v5.10.0 built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
test code
#!/usr/bin/perl
use strict;
use warnings;
use Net::SSH::Perl;
use Data::Dumper;
my $host = 'xxxxx';
my $user = 'xx';
my $pass = 'xx';
my $cmd = 'dir ';
my $ssh = Net::SSH::Perl->new($host);
$ssh->login( $user, $pass );
my ( $stdout, $stderr, $exit ) = $ssh->cmd($cmd);
print Dumper($stdout, $stderr, $exit);
--
Kevin J. Burdish
Senior Systems Analyst
The New York Times
Systems and Technology - Integrated Publishing Systems
620 8th Ave. 9th Floor - SW
New York, NY 10018-1405
Email: Kevin.Burdish@nytimes.com
Direct: 212-556-7516
Disclaimer: The Internet is running in debug mode.
*CAUTION: Contents may have been coded under pressure.*