Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Net::SSH::W32Perl Just Hangs

by Khen1950fx (Canon)
on Sep 20, 2010 at 20:44 UTC ( [id://860932]=note: print w/replies, xml ) Need Help??


in reply to Net::SSH::W32Perl Just Hangs

You're printing $stdout, $stderr, and $exit---just print $stdout. This worked for me.
#!perl use strict; use warnings; use Net::SSH::W32Perl; my $host = 'localhost'; my $user = 'user'; my $pass = 'pass'; my $ssh = Net::SSH::W32Perl->new($host, debug => 1); $ssh->login($user, $pass); my $cmd = 'pwd'; my($stdout, $stderr, $exit) = $ssh->cmd($cmd); print $stdout, "\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://860932]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-28 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found