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
http://dwimperl.com/windows.html is a boon for Windows.use Learning::Perl; use Beginning::Perl::Ovid; print "Awesome Books";
In reply to Re: Communication between Windows and Linux via Perl
by perl514
in thread Communication between Windows and Linux via Perl
by zhonghua
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |