in reply to best method in perl to execute command on remote server and fetch its output

Hello

I think the answer(s) to all your question(s) lies on this question:Best module to execute administrator commands on external operating systems (Linux). Do not be afraid of the Linux part if you are running another OS all the modules can be executed on all OS.

I had the same problem some time ago and I tested all possible ways on my question and I posted all possible solutions/ limitations that I found. So my final and easiest decision is to work with Net::OpenSSH::Parallel where you can execute multiple commands, in parallel. Even sudo commands in parallel and capture the output.

Hope this helps.

Seeking for Perl wisdom...on the process of learning...not there...yet!