Skip Menu |
 

This queue is for tickets about the Net-SSH-Perl CPAN distribution.

Report information
The Basics
Id: 40057
Status: resolved
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors: chintan.murty [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.32



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>
Download (untitled) / with headers
text/plain 773b
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
Download (untitled) / with headers
text/plain 212b
Yes, this looks like a bug. At any rate, as this module require IO::Socket, there is no harm in adding it to Net/SSH/Perl.pm, which I've just done. This will be a part of the next release, thanks for the report!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.