• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: authopen or not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >authopen or not (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Forwarding to Super
  • Next by Date: Re: authopen or not
  • Previous by thread: authopen or not
  • Next by thread: Re: authopen or not
  • Index(es):
    • Date
    • Thread