Thanks for the answer, however parallel would slow things down considerably. I need to control the number of threads spawned, thus I would need to pass it into pssh in batches of $threads. Running parallel I would then need to wait for all of them to finish before sending a new batch. The completion time of the commands on each node can vary with factor 10 or more.
I'll keep this in mind for a future project tho, the code is significantly easier than the threading. :-)
-Jesper
In reply to Re^2: Net::SSH2 not thread safe?
by Anonymous Monk
in thread Net::SSH2 not thread safe?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |