Doh, I see now that there has already been a bug opened on this problem:
http://rt.cpan.org/NoAuth/Bug.html?id=3D11674
Anyone know a workaround for it? If not, I will continue to watch the bug.
Thanks,
Larry
On 4/15/05, Larry Fine <lf...@go...> wrote:
>=20
> Hello all,
>=20
> I am a new user of Net::SSH::Perl. I have installed it on some servers fo=
r=20
> the first time, and I am trying to get it up and running. Here's some=20
> basics:
>=20
> OS: RedHat Linux 9
> Perl: Summary of my perl5 (revision 5.0 version 8 subversion 0)=20
> configuration:
> Platform: osname=3Dlinux, osvers=3D2.4.22, archname=3Di386-linux-thread-m=
ulti
> Net::SSH::Perl version 1.27
> IO::Handle version 1.21_00
>=20
> Essentially, I am having the same problem as described here:
> http://www.codecomments.com/message404300.html
>=20
> I am using the 4-line demo program from the POD to test:
> #!/usr/bin/perl -w
> use Net::SSH::Perl;
> my $ssh =3D Net::SSH::Perl->new('rastaman');
> $ssh->login('theuser');
> my($stdout, $stderr, $exit) =3D $ssh->cmd('ls');
>=20
> The output is:
> Can't locate object method "blocking" via package "IO::Handle" at=20
> /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl.pm line 212, <GEN0> line 1
>=20
> The line is is talking about is:
> defined($sock->blocking(0)) or die "Can't set socket non-blocking: $!";
>=20
> The version of IO::Handle I am using does in fact define blocking(), but =
I=20
> am unfamiliar with its proper usage and syntax.
>=20
> Anyone else run into this before? Any ideas?
>=20
> Thanks,
> Larry
>=20
--=20
"'Teenage Neofacist Skinheads Suffering From Progeria (That Rare Premature=
=20
Aging Disease) Play Mah-Jongg at a Swim Club in Lake Hayden, Idaho' ... is =
a=20
work that actually depicts, in delicate flecks of color, several peonies in=
=20
a vase." - Mark Leyner
|