Hi,
         yes, i'm using MS window, i followed the steps in the
http://www.perlmonks.org/?node_id=613394 now i don't get the same error, now
i'm getting a different error

This is the error i'm getting
"Math::BigInt: couldn't load specified math lib(s), fallback to
Math::BigInt::Fas
tCalc at C:/Perl/site/lib/Crypt/DH.pm line 6
Can't set socket non-blocking: Bad file descriptor at
C:/Perl/site/lib/Net/SSH/P
erl.pm line 216"

does anybody know what this error is? can someone help me how to solve this
problem?

Thanks,
Monnappa



On Tue, Nov 18, 2008 at 1:29 AM, Chas. Owens <[EMAIL PROTECTED]> wrote:

> On Mon, Nov 17, 2008 at 13:42, monnappa appaiah <[EMAIL PROTECTED]>
> wrote:
> > Hi All,
> >
> >         I wanted to write a script which could login into the server and
> > execute a command and return the output for that i used "Net::SSH::Perl"
> > module
> >
> > but when i run the script (i'm running on the windows machine)  i'm
> getting
> > this error "The getpwuid function is unimplemented at
> > C:/Perl/site/lib/Net/SSH/Perl.pm line
> > 110.
> > Press any key to continue . . ."
> >
> > can someone tell me what this error means and what shud i do to make this
> > script work.........find my code below
> >
> >
> > #!/usr/bin/perl -w
> > use strict;
> > use Net::SSH::Perl;
> >
> > my $host = "10.10.10.5";
> > my $user = "user1";
> > my $password = "pass1";
> >
> > my $ssh = Net::SSH::Perl->new($host);
> > $ssh->login($user, $password);
> > my ($stdout, $stderr, $exit) = $ssh->cmd("ls -l /home/$user");
> > print "$stdout\n";
> >
> >
> > Thanks,
> > Monnappa
> >
>
> Sounds like you are on MS Windows.  Take a look at this thread:
> http://www.perlmonks.org/?node_id=613394
>
>
> --
> Chas. Owens
> wonkden.net
> The most important skill a programmer can have is the ability to read.
>

Reply via email to