I think you should look at the select() call to check for output from your various children.
May I recommend going to a bookstore and purchasing Stevens' Unix Network Programming? This will have a lot of examples about how to do this sort of thing, coded in very clear C.
Michael
| [reply] |
Ya know, I was trying to look at select() for that before, but I'm still having some difficulty finding any good examples that can clearly show me how it's used. I've seen a couple, but they mostly cover with use of sockets. I'd rather like to avoid that route if I can.
Know of any good resources in Perl for that?
| [reply] |
That bit of code was only addressing the launching and gathering of child processes. I can't/won't/shouldn't work out everything for you.
| [reply] |
Contradicting everything in my previous post, I've 'slapped together' a process manager object and posted in the code section ProcessMgr
| [reply] |