Hi electr0n wizard!

On Saturday 23 Jan 2010 02:45:46 electr0n wizard wrote:
> I am new to Perl and am running ActiveStatePerl on a Windows 7
> machine.  I am trying to get SSH to work but get the error:
> 
> The getpwuid function is unimplemented at C:/Perl/site/lib/Net/SSH/
> Perl.pm line 110.

My guess is that Net::SSH::Perl does not work on Windows because getpwuid() ( 
see: http://perldoc.perl.org/5.10.0/functions/getpwuid.html is a Unix-only 
function. I suggest you use a different module instead or use cygwin or 
something.

> 
> When I try to run the following script:
> 
> use Net::SSH::Perl ;
> 
> $scon = Net::SSH::Perl->new ("www.savethetrain.org.uk");
> $scon->login("savethetrain","abc123");
> print "looking around ...\n";
> ($output,$errors,$exit) = $scon->cmd("ls -l");
> print $output;

This script does not use "use strict;" and "use warnings;". You should add 
them to it, assuming you are going to use it.

> 
> 
> This script was an example I found on the web.
> I do have Net::SSH::Perl installed.
> 
> Can someone give me advice on how to get around the error?
> Thanks

Hope it helps,

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Rethinking CPAN - http://shlom.in/rethinking-cpan

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to