/ Published in: Objective C
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