note
thanos1983
<p>Hello [id://1206580|sabas],</p>
<p>I had a similar case some time ago and I created multiple scenarios and solutions to my problem. My way of approaching your problem would be:</p>
<p>[http://search.cpan.org/~salva/Net-OpenSSH-Parallel-0.12/lib/Net/OpenSSH/Parallel.pm|Net::OpenSSH::Parallel] already [id://961|Anonymous Monk] proposed it. Alternatively you can create a <code>foreach</code> loop to connect to all nodes one by one. I would not use password authentication if I was you I would use ssh key authentication (more secure). The approach of looping one by one to the nodes I do not recommend it as it can result in time consuming and also if one node for some reason can not be reached can block the rest of the queue.</p>
<p>Sample of code for [http://search.cpan.org/~salva/Net-OpenSSH-Parallel-0.12/lib/Net/OpenSSH/Parallel.pm|Net::OpenSSH::Parallel] can be found here [id://1182533|Re: multiple machines disk space alert]. Sample of code using <code>foreach</code> loop and [http://search.cpan.org/~salva/Net-OpenSSH-0.77/lib/Net/OpenSSH.pm|Net::OpenSSH] can be found here [id://1101813|Re: Simple SSH based chat client].</p>
<p>Hope this helps. BR / Thanos</p>
<code></code>
<code></code>
<div class="pmsig"><div class="pmsig-1069339">
Seeking for Perl wisdom...on the process of learning...not there...yet!
</div></div>
1217479
1217479