Get terminal output after a command swift
NSTask is class to run another program as a subprocess. You can capture the program’s output, error output, exit status and much more. Expanding on my answer to xcode 6 swift system() command, here is a simple utility function to run a command synchronously, and return the output, error output and exit code (now updated … Read more