Skip to content

TheCodeEngine/TCTaskWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCTaskWrapper

A NSTask Wrapper for Mac OS X

Install

Add as git Module

git submodule add [email protected]:TheCodeEngine/TCTaskWrapper.git
git submodule init

Syncron Task

To run a syncron Task

NSError *taskRUnError;
TCTaskWrapper *task = [[TCTaskWrapper alloc] initWithTaskPath:[NSURL URLWithString:@"/bin/ls"] arguments:@[@"-l"]];
if ( ![task runTaskSyncronError:&taskRUnError] ) {
    // Task has Error
}
else
{
    // Task Exit
    NSString *outDataString = [task outPutDataToString];
}

License

TCTaskWrapper is is licensed under the MIT license. See the LICENSE file in the project root for the full text.

About

A NSTask Wrapper for Mac OS X

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published