Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Problem to connect remote host

by perladdict (Chaplain)
on Apr 11, 2007 at 15:00 UTC ( #609384=perlquestion: print w/ replies, xml ) Need Help??
perladdict has asked for the wisdom of the Perl Monks concerning the following question:

As two days back i asked the same problem in monastery ,now i am trying it in different way by using Net::SSH::Perl
#!/usr/bin/perl -w use Net::SSH::Perl; $ssh = Net::SSH::Perl->new("xxxx"); $ssh->login("xxxx","YYYY"); ($stdout, $stderr) = $ssh->cmd('df -k'); print $stdout; $ssh->cmd("exit");

I installed Net::SSH::Perl-1.8 vesion on perl 5.8.8 version on windows platform,
after executing the above code i am getting an arror as below
ERROR:The getpwuid function is unimplemented at C:/Perl/site/lib/Net/SSH/Perl.pm line 110.
Monk's can anyone help me out on this task.

Comment on Problem to connect remote host
Download Code
Re: Problem to connect remote host
by Joost (Canon) on Apr 11, 2007 at 16:10 UTC
Re: Problem to connect remote host
by ikegami (Pope) on Apr 11, 2007 at 17:18 UTC

    That was fixed in 1.20 2001.07.11 (almost 6 years ago!)

    - getpwuid is now called in an eval, so on systems that do not support it, it will not cause a fatal error. Thanks to Shaun Bramley for the spot.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://609384]
Approved by NovMonk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2014-07-24 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (160 votes), past polls