Top "Nstask" questions

NSTask Class on OS X API , lets you run another program as a subprocess and monitor that program’s execution

Executing shell commands with NSTask - Objective-C Cocoa

I have been searching for days and hours for this, I have seen a lot of examples of this, but …

objective-c macos cocoa nstask
NSTask launch path not accessible

I am using the following code in my Cocoa project to call a script I made. The script is in …

objective-c cocoa path nsbundle nstask
PHP CLI doesn't use stderr to output errors

I'm running the PHP CLI through a NSTask in MacOS, but this question is more about the CLI itself. I'm …

stdout stderr php nstask
NSTask or equivalent for iPhone

I've an open source project (gdal) that I want to compile and run as part of an iOS app. I …

ios command-line open-source gdal nstask
How to use NSTask as root?

In an application I'm making I need to run the following command as root (user will be prompted trice if …

cocoa root sudo nstask
NSTask NSPipe - objective c command line help

Here is my code: task = [[NSTask alloc] init]; [task setCurrentDirectoryPath:@"/applications/jarvis/brain/"]; [task setLaunchPath:@"/applications/jarvis/brain/server.sh"]; …

objective-c nsstring terminal nstask
Obtaining admin privileges to delete files using rm from a Cocoa app

I am making a small app that deletes log files. I am using an NSTask instance which runs rm and …

cocoa authorization privileges keychain nstask
NSTask not picking up $PATH from the user's environment

I don't know why this method returns a blank string: - (NSString *)installedGitLocation { NSString *launchPath = @"/usr/bin/which"; // Set up …

objective-c cocoa bash shell nstask
Running shell script with NSTask causes posix_spawn error

I'm trying to run a shell script with NSTask with the following code: NSTask *task = [[NSTask alloc] init]; [task setLaunchPath:@"/…

objective-c macos shell posix nstask
NSTask launch path not accessible. Works in Xcode. Error shown out of XCode

Ok. There are several questions on stack overflow about this. This question was the only question comes closest to mines, …

objective-c cocoa nstask