http://www.perlmonks.org?node_id=1028080


in reply to Communication between Windows and Linux via Perl

Hi,

You can try DWIM Perl. It comes with the Net::SSH2 Module pre installed. I have used it to login to a lot of Linux Boxes and Linux Based Storage Arrays and it works like a charm. Do a google search for DWIM Perl.

For Net::SSH2, please read A little demo for Net::SSH2. Its really good. One thing that will help you is, insert a sleep interval -  sleep 10 in your script right after you do a chan2->exec('somecommand');.

Perlpetually Indebted To PerlMonks

use Learning::Perl; use Beginning::Perl::Ovid; print "Awesome Books";
http://dwimperl.com/windows.html is a boon for Windows.