[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: catching Lua output
- From: Paul K <paulclinger@...>
- Date: Sun, 2 Dec 2012 13:02:06 -0800
Hi Phil,
I was just asking a similar question (but doing this from my Lua code)
and got some good suggestions:
http://lua-users.org/lists/lua-l/2012-11/msg00125.html. I ended up
defining my own "print" function that does what I need.
Paul.
On Sun, Dec 2, 2012 at 12:18 PM, Philipp Kraus
<philipp.kraus@flashpixx.de> wrote:
> Hello,
>
> how can I catch Lua print statements within my C code?
> My Lua scripts run within a simulation on a different host and if the scripts runs a print statement I would like to catch the output and store it in a C variable for send the output back to the client.
> I run a lua_call on the C code for running the Lua function.
>
> Thanks
>
> Phil