• 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
capture console output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

capture console output


  • Subject: capture console output
  • From: Billy Flatman <email@hidden>
  • Date: Thu, 22 Apr 2010 10:10:16 +0100

Hi all,

I'd like to be able to capture the output from console after running a command. My Googling investigations have lead me to using 'popen'.

FILE *file = popen("sqlite3 test.db .tables","r");

However, I've not been able to read the information from the returned file.

I know there are other ways of getting the sqlite information, but I just want to know how to read outputs from console, for my own interest.

Cheers,

Billy Flatman
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

  • Follow-Ups:
    • Re: capture console output
      • From: Dave Keck <email@hidden>
  • Prev by Date: [NSWindow title] isn't the title
  • Next by Date: Re: capture console output
  • Previous by thread: Re: [NSWindow title] isn't the title
  • Next by thread: Re: capture console output
  • Index(es):
    • Date
    • Thread