Re: [Ssh-sftp-perl-users] beginners question
Brought to you by:
dbrobins
From: Steven H. <hes...@ya...> - 2006-02-06 19:18:40
|
https://rt.cpan.org/Public/Bug/Display.html?id=11674 I had the same problem and was able to resolve by adding the following line to perl.pm: use IO::Socket; --- 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 = "10.106.135.196"; > $user = "user"; > $pass = "password"; > $cmd = "ls"; > > use Net::SSH::Perl; > my $ssh = Net::SSH::Perl->new($host); > $ssh->login($user, $pass); > my($stdout, $stderr, $exit) = $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 > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |