You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 timeout = 1000 -- ms
local max_size = 4096 -- byte
local ok, stdout, stderr, reason, status =
shell.run([[apt-get update]], stdin, timeout, max_size)
ngx.say(ok)
ngx.say("stdout " ..stdout)
ngx.say("stderr " ..stderr)
ngx.say("reason " ..reason)
ngx.say(status)
ngx.say("Good !!")
if not ok then
ngx.say("errror")
end
The text was updated successfully, but these errors were encountered:
Hi, I have following code and was expecting line by line printing to screens instead of print all output
The text was updated successfully, but these errors were encountered: