Execute a command in swift


/ Published in: Other
Save to your folder(s)

let commandOutput = executeCommand("/bin/echo", ["Hello, I am here!"])
println("Command output: \(commandOutput)")

URL: http://square-the-circle.com/2014/08/03/executing-a-system-command-from-a-macos-app-swift/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.