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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/