I have something like:
- (NSString *)unixSinglePathCommandWithReturn:(NSString *)command { NSPipe *newPipe = [NSPipe pipe]; NSFileHandle *readHandle = [newPi
For different approaches to run shell scripts in Cocoa have a look at AMShellWrapper, PseudoTTY.app or OpenFileKiller!
http://www.cocoadev.com/index.pl?NSTask