/*** Execute a program without using the shell. @function exec @string path @tparam table argt arguments (table can include index 0) @return nil @treturn string error message @see execve(2) @usage exec ("/bin/bash", {[0] = "-sh", "--norc}) */ static int Pexec(lua_State *L) { return runexec(L, 0); }
/*** Execute a program using the shell. @function execp @string path @tparam table argt arguments (table can include index 0) @return nil @treturn string error message @see execve(2) */ static int Pexecp(lua_State *L) { return runexec(L, 1); }
static int Pexecp(lua_State *L) /** execp(path,[args]) */ { return runexec(L, 1); }