in reply to Communication between Windows and Linux via Perl

"Can't locate Math/Pari.pm in @INC"

Start by installing Math::Pari.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
  • Comment on Re: Communication between Windows and Linux via Perl

Replies are listed 'Best First'.
Re^2: Communication between Windows and Linux via Perl
by salva (Canon) on Apr 10, 2013 at 15:40 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

      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.