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

Re^2: Communication between Windows and Linux via Perl

by salva (Abbot)
on Apr 10, 2013 at 15:40 UTC ( #1028001=note: print w/ replies, xml ) Need Help??

Comment on Re^2: Communication between Windows and Linux via Perl
Replies are listed 'Best First'.
Re^3: Communication between Windows and Linux via Perl
by KevinZwack (Chaplain) on Apr 10, 2013 at 20:45 UTC

    I recently implemented something like this with Net::SSH::Any... Here's a code snippet...

    my $ssh = Net::SSH::Any->new($ipAddr, user => $user, password => $password, backends => [qw/Net::SSH2/], timeout=>1, kill_ssh_on_timeout=>1); $ssh->error and die "Unable to Connect via SSH to $mac, " . $ssh->error); my ($output, $errput) = $ssh->capture2($cmd);

      Hi,

      Thank you, I'll try it.

      Br, Wei
Re^3: Communication between Windows and Linux via Perl
by zhonghua (Novice) on Apr 11, 2013 at 14:53 UTC

    Hi,

    Thank you, I'll try to use Net::SSH::Any.

    Br, Wei
      You may also need to install Net::SSH2 which is pretty hard to install from source on Windows, but you can download a pre-compiled PPM version from here.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2015-08-01 03:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls