Using NSTask to launch shell script that launches Node.JS
问题 I have a cocoa app and I want to launch a shell script that launches Node.js. I figured I would do that with NSTask NSTask *task = [[NSTask alloc] init]; [task setLaunchPath:@"/bin/bash/start.sh"]; [task setArguments:[NSArray arrayWithObjects:@"start.sh", nil]]; [task setStandardOutput:[NSPipe pipe]]; [task setStandardInput:[NSPipe pipe]]; [task launch]; The script is in the root of my application. I have tried many variations in the launch path and I am stuck. Any help would be greatly