exec - Calling an external command in Swift -



exec - Calling an external command in Swift -

how can phone call external command (launch subprocess) swift script?

perhaps call(["ls", "-l"]) in python.

you can still utilize nstask in swift. illustration this.

let task = nstask() task.launchpath = "/bin/ls" task.arguments = ["-l"] task.launch()

exec swift

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -