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
Post a Comment