Created
December 19, 2017 14:40
-
-
Save olbrichj/5ca5e7814202905b66ab7086cf0c8380 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let task = Process() | |
task.launchPath = "/bin/sh" //executable you want to run | |
task.arguments = arguments //here is the information you want to pass | |
task.terminationHandler = { | |
// do here something in case the process terminates | |
} | |
task.launch() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment