lua-users home
lua-l archive

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


Btw, thanks for that particular bit of information. I didn't know that
;) We are now evaluating moving to 5.2, because [after looking into
it] of the new io.popen behaviour and the module handling. Without
that bit we'd have never considered it.

bw,
Martin

On 7 September 2010 11:00, steve donovan <steve.j.donovan@gmail.com> wrote:
> 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.
>
>