lua-users home
lua-l archive

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


On Tue, Sep 7, 2010 at 9:32 AM, Martin Voigt <voigt.m@googlemail.com> wrote:
> I'm having similar problems and tried io.popen. Problem is, popen
> doesn't give you the return value of the command you ran.

The good news is that closing the handle from io.popen in Lua 5.2 does
give you the return code.

Yes, I've jumped through those hoops as well - there was a thread some
time back on that.  Hard to do it in a portable fashion.

http://lua-users.org/lists/lua-l/2009-06/msg00127.html

steve d.