Skip to content

Instantly share code, notes, and snippets.

@olbrichj
Created December 19, 2017 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olbrichj/5ca5e7814202905b66ab7086cf0c8380 to your computer and use it in GitHub Desktop.
Save olbrichj/5ca5e7814202905b66ab7086cf0c8380 to your computer and use it in GitHub Desktop.
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