lua-resty-shell icon indicating copy to clipboard operation
lua-resty-shell copied to clipboard

Lua module for nonblocking system shell command executions

Results 7 lua-resty-shell issues
Sort by recently updated
recently updated
newest added

Hi, I have following code and was expecting line by line printing to screens instead of print all output ``` local shell = require "resty.shell" local stdin = "hello" local...

error: ``` [error] 6280#6280: *962711 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/shell.lua:136: invalid value (nil) at index 2 in table for 'concat' stack traceback: coroutine 0: [C]: in function 'concat'...

I use `resty` to run unit tests against an openresty project, but any files which `require` this shell module will fail with this message: ```text Error → /usr/local/openresty/lualib/ngx/pipe.lua @ 500...

local shell = require "resty.shell" ngx.req.read_body() local args = ngx.req.get_post_args() shell.run("/bin/echo", args.name)

my lua code: `local ok, stdout, stderr, reason, status=shell.run([[ls -la /dev/tty && ssh -v [email protected] 'pwd']])` stdout: `crw-rw-rw- 1 root root 5, 0 Jan 26 10:03 /dev/tty` stderr: `OpenSSH_7.6p1 Ubuntu-4ubuntu0.4,...

Hi, When using lua-resty-shell I have the following issue, looks like that the memory allocated to these commands is not configurable, so simple commands can't be executed due can't allocate...

I try to use require "resty.shell" in stream TCP and report the following error: openresty/lualib/ngx/pipe.lua:5: unsupported subsystem: stream