Tutorial :objective c popen



Question:

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.


Solution:1

Check out NSTask.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »