Re: Capturing output from another task with elevated privilages
Re: Capturing output from another task with elevated privilages
- Subject: Re: Capturing output from another task with elevated privilages
- From: Kevin Wojniak <email@hidden>
- Date: Thu, 1 Jul 2010 09:10:29 -0700
I may be wrong, but I believe AEWP only captures stdout, not stderr, so you could check for that.
On Jul 1, 2010, at 7:37 AM, Eric Hoaglin wrote:
> Hi all,
>
> I have the following code:
> http://www.pasteit4me.com/763005
>
> I'm trying to capture the output of the task that I run. and from what I understand, if you want to do so, you pass a FILE*
> to AuthorizationExecuteWithPrivileges and then just read it as a normal file (which you can see from lines 29-45
>
> I'm not sure I'm doing it correctly, as when I run my app in the Xcode debugger, the output gets to the debug console, but doesn't show up
> when I run it from a normal build. I know there is output from the task because I can see it... in the debug console.. but not from my own
> NSLOG tests.
>
> Any and all help would be greatly appreciated.
>
> Thanks in advance and regards,
>
> Eric Hoaglin
> GryphonClaw Software
> http://www.gryphonclaw.net
> REALbasic Paste Site: http://code.gryphonclaw.net
>
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden