Bonjour,
I found that the only
way to get to work "Net::SSH::W32Perl" on Windows XP is to redirect the output
to something else than stdout...anybody ever found a solution on
that?!?
Here's some code
examples:
This one doesn't work...just wait forever on the
$ssh->cmd line...
----
use
Net::SSH::W32Perl;
my
$ssh = Net::SSH::W32Perl->new($host, debug=>1);
$ssh->login('xxxxx', 'xxxxxxxxx');
my($stdout, $stderr, $exit) = $ssh->cmd('ls', "\n");
my($stdout, $stderr, $exit) = $ssh->cmd('ls', "\n");
print "$stdout\n$stderr\n$exit\n";
----
And this one work...but I want to get back $stdout...I
don't want to create a file...I want the result
back!!!
----
use
Net::SSH::W32Perl;
my
$ssh = Net::SSH::W32Perl->new($host, debug=>1);
$ssh->login('xxxxx', 'xxxxxxxxx');
my($stdout, $stderr, $exit) = $ssh->cmd('ls >/home/xxxxx/out.txt', "\n");
my($stdout, $stderr, $exit) = $ssh->cmd('ls >/home/xxxxx/out.txt', "\n");
print "$stdout\n$stderr\n$exit\n";
----
Any
idea?!?!? I really need this to work...
For your
info:
This is perl, v5.8.7 built for MSWin32-x86-multi-thread
Thanks for
any help!
----
Dominic Dupuis
Dominic Dupuis
_______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
