[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: stderr from an io.popen ?
- From: Doug Currie <doug.currie@...>
- Date: Tue, 28 Sep 2010 13:21:50 -0400
On Sep 28, 2010, at 3:56 AM, HyperHacker wrote:
> I don't think Lua offers a way to read both streams separately without
> redirecting one to a pipe or temporary file.
Right; lua-ex-api provides io.pipe and os.spawn:
http://code.google.com/p/lua-ex-api/
these can be used to make popen2 as described here:
http://lua-users.org/wiki/ExtensionProposal
e