How can I manage a fork pool in Perl?
Posted
by user301087
on Stack Overflow
See other posts from Stack Overflow
or by user301087
Published on 2010-03-24T18:13:03Z
Indexed on
2010/03/25
18:53 UTC
Read the original article
Hit count: 285
I'm setting something up to SSH out to several servers in 'batches'. I basically want to maintain 5 connections at a time, and when one finishes open up another (following an array of server IPs).
I'm wondering for something like this should I be using fork()? If so, what logic can I use to ensure that the I maintain 5 children at a time?
© Stack Overflow or respective owner