How to execute shell commands from Swift
practicalswift.com