views:

20

answers:

1

im looking to execute to execute command line commands from objective c. I know that popen can do this however I am have trouble trying to read and display what the data as an NSString. can anyone tell me how to do this or give me a native objective c function that is equivalent?

I probably should have mentioned im trying to write an application for a jailbroken iphone.

+1  A: 

Check out NSTask.

mipadi