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 b.flat...@googlemail.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com