Re: authopen or not
Re: authopen or not
- Subject: Re: authopen or not
- From: Steve Checkoway <email@hidden>
- Date: Sat, 24 Jul 2004 06:42:01 -0700
On Jul 24, 2004, at 5:48 AM, Gerriet M. Denkmann wrote:
but what about the dup2() mentioned in the authopen man page?
Or is fork(), and execle() the way to go?
I've never used this, but from reading the man page, I'd say that the
best way to go about it is to create a pipe (using pipe(2)), fork, dup2
redirecting stdout to the writing end of the pipe (close the reading
end) and then exec authopen. From the parent, you close the write end
of the pipe, and then use the read end with your calls to popen.
I could probably write some sample code if you needed it.
- Steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.