Skip to content

It's blocking apt-get update  #22

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions