in reply to Do I need threads?

You could also start the existing slightly modified shell script as background task. One per server. So they run in parallel.

Just make a shell or perl script that starts the existing code in a for loop one after another as background tasks. Most code is reused, the least work has to be done. And you don't have to worry about getting multithreading right since you don't actually multithread.

BREW /very/strong/coffee HTTP/1.1
Host: goodmorning.example.com

418 I'm a teapot

Replies are listed 'Best First'.
Re^2: Do I need threads?
by TechFly (Scribe) on Dec 20, 2011 at 21:17 UTC

    I could, but it still has the problem that I don't get the output in the main script. I really need to see the output so that I can parse for errors.