capture console output
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