Setting stderr for a helper run with AuthorizationExecuteWithPrivileges
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