[Ssh-sftp-perl-users] Problem with IO::Handle
Brought to you by:
dbrobins
From: Larry F. <lf...@go...> - 2005-04-15 21:17:50
|
Hello all, I am a new user of Net::SSH::Perl. I have installed it on some servers for= =20 the first time, and I am trying to get it up and running. Here's some=20 basics: 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-mul= ti Net::SSH::Perl version 1.27 IO::Handle version 1.21_00 Essentially, I am having the same problem as described here: http://www.codecomments.com/message404300.html 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'); 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 The line is is talking about is: defined($sock->blocking(0)) or die "Can't set socket non-blocking: $!"; The version of IO::Handle I am using does in fact define blocking(), but I= =20 am unfamiliar with its proper usage and syntax. Anyone else run into this before? Any ideas? Thanks, Larry |