lua-users home
lua-l archive

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


> io.popen can either pipe to or pipe from a program. That's
> because the C library routine can only do one of the two.

Try POSIX pipe, which should be available in luaposix.

> Now suppose a certain program writes unbuffered output.
> Is there any way (coroutine, temporary file, whatever) to
> read whatever output has just been written after providing
> some input?

Perhaps a named pipe will work, but I'm not sure you'll be able to unbuffer it.