What perl function to use?

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/24 20:23 UTC
Read the original article Hit count: 286

Filed under:
|
|

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

Related posts about perl

Related posts about fork