|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Capturing SSH output in an array.by perl514 (Monk) |
| on Nov 14, 2012 at 19:01 UTC ( #1003876=note: print w/ replies, xml ) | Need Help?? |
|
Hi Salva !!! Pity I can vote this only once. I installed your new updated module and it just works now !!!. Here is the script
Aand here is the output !!
You rock !! Thing is, it took about 12 seconds for the script to ssh into the Centos VM Guest OS, but man I am glad this works !!...Is there a way to save the ssh keys and circumvate the password requirement? If the Net::SSH2 method will work (I still havent tried it) to add the ssh keys, then I'll try that out. But yeah, this works !! O yeah, by the way, I finally got rid of Windows 7 on my personal laptop....will try on that one too !! Its running Ubuntu 12.04 now, so itching to try out stuff on it :) So for work, I will be on Win 7 (And to manage the storage environment it will be Win 2003: Not my choice), but on personal laptop, its Linux all the way now. Perlpetually Indebted To PerlMonks
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||