lua-users home
lua-l archive

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


2008/10/22 Enrico Colombini <erix@erix.it>:
> I can launch an external program with os.execute() and get its result.
> I can launch it with io.popen() and get its output.
>
> Is there a pure-Lua way to get both output and result?
> (without resorting to an intermediate file, I mean)
>
> I'm working on Windows, so the shell is quite limited.

You can't do that in pure Lua. You can do that with the lua-ex binary
module. Manual and link to the sources can be found there:
http://lua-users.org/wiki/ExtensionProposal