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

Reply via email to