• 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
Setting stderr for a helper run with AuthorizationExecuteWithPrivileges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting stderr for a helper run with AuthorizationExecuteWithPrivileges


  • Subject: Setting stderr for a helper run with AuthorizationExecuteWithPrivileges
  • From: John Clayton <email@hidden>
  • Date: Thu, 12 May 2005 08:56:06 -0400

Hi,

I am running an installer tool using security services via AuthorizationExecuteWithPrivileges(). I need (ok, want) to differentiate between the child process' stdout and stderr. Stdout is set up for me in the function call, of course. But, how can I tell the child to use a different communications channel for its stderr and not the parent's?

What I hope to do is read stdout and stderr asynchronously so that they can be displayed to the user as they come in. I figured that I could create NSFileHandle's from the file descriptors and do readInBackground. Am I way off base here? Is there a better approach?

Thanks,
John

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Setting stderr for a helper run with AuthorizationExecuteWithPrivileges
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Add metadata to my files for Spotlight
  • Next by Date: Re: 10.3.9 SDK generates error
  • Previous by thread: Re: saving images on panther
  • Next by thread: Re: Setting stderr for a helper run with AuthorizationExecuteWithPrivileges
  • Index(es):
    • Date
    • Thread