Subject: | Bug ("blocking" via package "IO::Handle") |
Date: | Tue, 14 Oct 2008 18:02:27 -0400 |
To: | bug-Net-SSH-Perl [...] rt.cpan.org |
From: | "Chintan Murty" <chintan.murty [...] gmail.com> |
Hi
I installed Net::SSH:Perl Module and wrote a simple script.
#!/usr/bin/perl
use Net::SSH::Perl;
my $user = 'xxxxx';
my $pass = 'xxxxxx';
my $host = 'xxxxxx';
my $cmd = 'cat /etc/resolv.conf';
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
print "$stdout\n";
it gave me error on execution.
------------------
Can't locate object method "blocking" via package "IO::Handle" at
/usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl.pm line 212, <GEN0> line 1.
--------------------
I explicitely added a line in file
/usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl.pm
"use IO::Handle;"
after that when I executed the script I expected got the output.
Is that a BUG?
Regards
Chintan Murty