$ luarocks install spawn
A lua library to spawn programs
# Features
High level functions for common cases
Bindings to the full posix_spawn family of functions
Compatible with Lua 5.1, 5.2, 5.3 and LuaJIT
Currently only works on POSIXy systems, but the high level module should be portable to Windows; someone just needs to put the work in.
Versions
Dependencies
lua >= 5.1, < 5.4