lua-users home
lua-l archive

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

On Tue, Mar 23, 2010 at 8:52 AM, steve donovan
<> wrote:
> On Tue, Mar 23, 2010 at 9:44 AM, Valerio Schiavoni
> <> wrote:
>> Do you know if it's possible to play with stdin so that the string is
>> set as the current stdin, so that I avoid to write on disk ?
> Unfortunately, we do not have popen2, where you can write to the
> process input and then read the process output.  (I believe luaex has
> such a function)

what is luaex ?

> Using a temp file isn't so bad, but make sure it's writeable for
> everyone.

what i do is:
local tmpFileName =
tmpFile =,"w")

which i expect to be safe.