Quickest Way to Shell - Use system() instead of NSTask

/ Published in: Objective C
Save to your folder(s)

Cocoa provides NSTask to run subprocesses. It can be used to run shell scripts, but all this manual pipe and file handling is a bit cumbersome. Fortunately, for a simple script, we can use the trusty old system and redirect its result to a file.

URL: http://parmanoir.com/Quickest_Way_to_Shell

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.