lua-resty-exec

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.

[1] https://buffering.party/software/sockexec/

Versions

3.0.3-148 days ago6 downloads
3.0.3-08 years ago15,003 downloads
3.0.2-08 years ago5,431 downloads
3.0.1-08 years ago5,738 downloads
2.0.1-09 years ago137 downloads
2.0.0-19 years ago79 downloads
2.0.0-09 years ago45 downloads
1.2.1-09 years ago20 downloads
1.2.0-09 years ago48 downloads
1.1.4-09 years ago39 downloads
1.1.3-09 years ago16 downloads
1.1.2-09 years ago104 downloads
1.1.1-19 years ago48,559 downloads
1.1.1-09 years ago435 downloads
1.1.0-09 years ago422 downloads
1.0.0-09 years ago18 downloads

Dependencies

lua >= 5.1
netstring >= 1.0.6

Dependency for

lua-docx, multistreamer

Manifests