Running Unix commands from Objective-C
do shell script "Unix commands here"
In Cocoa, I have been using
NSAppleScript *script = [[NSAppleScript alloc] initWithsource:@"Unix commands here"];
NSDictionary *error = [[NSDictionary alloc] init];
[script executeAndReturnError:error];
It works fine, but is there a way to run Unix commands directly from Cocoa without going through NSAppleScript?
Mac OS X (10.5.5)