Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Do I need threads?

by cavac (Parson)
on Dec 20, 2011 at 21:10 UTC ( [id://944474]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://944474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-23 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found