• 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: Capturing stdout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Capturing stdout
      • From: Sailor Quasar <email@hidden>
References: 
 >Capturing stdout (From: Nicholas Francis <email@hidden>)

  • Prev by Date: Re: Developing for 10.3
  • Next by Date: Re: getting a plist into a dictionary?
  • Previous by thread: Capturing stdout
  • Next by thread: Re: Capturing stdout
  • Index(es):
    • Date
    • Thread