[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: What do you guys use instead of backticks?
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 23 Jan 2011 13:35:55 +0200
On Sun, Jan 23, 2011 at 1:18 PM, Gunnar Zötl <email@example.com> wrote:
> Io.popen works well most of the time, lpty for the notoric cases.
A deficiency of Lua 5.1 popen is that there was no direct way to get
the return code of the process; in 5.2, p.close() does return this.
lpty is fantastic if you need to capture an _interactive_ process
(like GDB) - only POSIX, however.