Run external programs in OpenResty without spawning a shell

$ luarocks install lua-resty-exec

A small Lua module for executing processes. It's primarily intended to be used with OpenResty, but will work in regular Lua applications as well. When used with OpenResty, it's completely non-blocking (otherwise it falls back to using LuaSocket and does block).

It's similar to (and inspired by) lua-resty-shell, the primary difference being this module uses sockexec, which doesn't spawn a shell - instead you provide an array of argument strings, which means you don't need to worry about shell escaping/quoting/parsing rules.

This requires your web server to have an active instance of sockexec[1] running.



3.0.3-04 years ago5,256 downloads
3.0.2-04 years ago11 downloads
3.0.1-04 years ago323 downloads
2.0.1-04 years ago85 downloads
2.0.0-14 years ago43 downloads
2.0.0-04 years ago9 downloads
1.2.1-04 years ago5 downloads
1.2.0-04 years ago34 downloads
1.1.4-04 years ago32 downloads
1.1.3-04 years ago9 downloads
1.1.2-04 years ago39 downloads
1.1.1-14 years ago5 downloads
1.1.1-05 years ago348 downloads
1.1.0-05 years ago4 downloads
1.0.0-05 years ago11 downloads


lua >= 5.1
netstring >= 1.0.6

Dependency for

lua-docx, multistreamer