lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


	I'm having a problem reading whatever data a server is sending to
the script through stdin.

This code is based on what I read in the

--Must first empty stdin
while true do
        local line =
        -- if line == "" then break end
        if line == nil then break end

io.write("NOOP After loop\n")
line =

For some reason, the script seems stuck in the while loop, since it
never displays the NOOP line.

"luac -p myscript.lua" doesn't return an error.

Any idea what could be wrong with the code?

Thank you.