Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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/ line 110.
Monk's can anyone help me out on this task.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://609384]
Approved by NovMonk
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2016-12-10 21:07 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (165 votes). Check out past polls.