locenv mod install github:locenv/mod-launcher
local l = require 'launcher'
local p = l.spawn('path/to/binary')
Launch binary
in wd
and return the process
object immediately without waiting for the process
to exit. If wd
is absent it will launch in the working directory of the script's current context.
The process will force exit if it is still running when the process
object is out of scope.
Wait for the process to exit.
MIT