Hallo.

Jason [Tuesday, November 19, 2002, 10:11:45 PM]:
JF> But, if I go the way of the fork, the program cannot be broken down into
JF> lots of mini-programs which are designed to do a single job.. everything
JF> would have to be rolled into one larger program with (I'm guessing here)
JF> multiple fork points to handle each different type of system I'm trying
JF> to run ...

JF> I *think* I can do it with a wrapper program that launches the new
JF> program and reports back the pid, but that doesn't seem right to me ... 
JF> It seems that this is something that Perl should be able to do, but I
JF> can't figure out how to do it ...

JF> How about an example ...  The main program is called monitor.perl ... 
JF> While it's running, it spawns a second program called pingit.perl and a
JF> third called snmpit.perl ...  I want both pingit and snmpit to be able
JF> to run concurrently while monitor watches to ensure that those programs
JF> don't run too long, don't report back errors, and does some calculations
JF> to ensure that it's running efficiently...

JF> How do I allow monitor.perl to spawn pingit.perl and snmpit.perl and
JF> still continue running itself?


Look at this article, i think it will be usefull for you.
http://www.stonehenge.com/merlyn/UnixReview/col41.html

-- 
Have a nice day.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to