localexec is a lua module that executes a command by accepting (stdin,env,args) as input and returning (resultcode,stdout,stderr) as output
$ luarocks install localexec
4
root