Re: [Ssh-sftp-perl-users] beginners question
Brought to you by:
dbrobins
From: Michael M. <mm...@gm...> - 2006-02-06 15:34:14
|
It's a bug in the version of the module that you get when you retrieve the module via cpan. Not sure why it doesn't get updated there. On 2/6/06, Eran Kaufman <era...@gm...> wrote: > hi, > trying to run simple ssh command, just to see if module is working for me= , > but i receive error i can't understand > here's the short script: > > #!/usr/bin/perl > > > $host =3D "10.106.135.196"; > $user =3D "user"; > $pass =3D "password"; > $cmd =3D "ls"; > > use Net::SSH::Perl; > my $ssh =3D Net::SSH::Perl->new($host); > $ssh->login($user, $pass); > my($stdout, $stderr, $exit) =3D $ssh->cmd($cmd); > > print ("$stdout\n"); > print ("$stderr\n"); > print ("$exit\n"); > > > the error i receive is: > > >perl test_ssh_100.pl > Can't locate object method "blocking" via package "IO::Handle" at > C:/PXPerl/site/lib/Net/SSH/Perl.pm line 212, <GEN0> line 1. > >Exit code: 9 Time: 0.411 > > > can someone assist? > > many thanks, > > Eran |