Re: Redirecting Output for a fork()'d Process
Re: Redirecting Output for a fork()'d Process
- Subject: Re: Redirecting Output for a fork()'d Process
- From: David Alger <email@hidden>
- Date: Fri, 13 Apr 2007 15:13:43 -0500
Thanks Dair, however I decide not to use pipes for various reasons I can't remember right now. I have every thing figured out and working now, so thanks for all the help/responses from everybody.
Regards, David Alger On Apr 13, 2007, at 7:44 AM, Dair Grant wrote: David Alger wrote:
Thanks for the quick and helpful responses. I have this figured out now and also have simpler code as well. Just for the record here's what I came up with for the forking code.
Hi David,
There is a command-line wrapper, NTask, available in Nano which might be a useful reference:
The approach I take is to connect the stdio streams between child/parent using a pipe, which allows you to pass data both ways (child can read from stdin, and receive data the parent wrote to the relevant pipe).
-dair ___________________________________________________
-- David Alger, Software Engineer Family Friendly Software, LLC
Looking for a reliable, affordable, and customer oriented web host? With BlueHost you get a FREE domain name and FREE setup plus a first-class hosting package for ONLY $6.95 a month! |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden