Re: Capturing stdout
Re: Capturing stdout
- Subject: Re: Capturing stdout
- From: Don Murta <email@hidden>
- Date: Wed, 17 Dec 2003 22:47:32 -0700
How about freopen on stdout to a temp file then use fread to regain
that output like as in
http://www.opengroup.org/onlinepubs/007904975/functions/freopen.html
Hope that helps.
don
On 17-Dec-03, at 9:05 PM, Nicholas Francis wrote:
Hi guys...
We're trying to make a console for our game editor, and would like to
capture any output sent to stdout for display. This is all done using
cocoa. I've looked at the NSPipe and NSTask documentation, but I can't
see how to get the output of the running (main) process...
Any pointers?
_______________________________________________
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.