Skip to content

os.exec

madra.net edited this page Mar 15, 2020 · 1 revision

os.exec(cmd string) ?Result

Execute a shell command. ?Result = Optional return, so need to handle possibility of error:

Example:

os.exec("ls -al") or { panic(err) }
Clone this wiki locally