[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Joining two pipes
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 27 Dec 2013 10:44:49 -0200
> 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.