lua-users home
lua-l archive

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


On Thu, Aug 29, 2013 at 2:04 PM, Ousmane Roland Yonaba
<roland.yonaba@gmail.com> wrote:
> The thing is, when we actually input a wrong command in a shell output, it
> prints an an error message readily, while still running the Lua program.
> Well, is it possible to somehow shadow that error message ? Catching the
> output, redirecting it somewhere else, and then display (or not) a
> custom-made report instead ? If so, can I have some pointers, in terms of
> code ?


Take a look at http://www.lua.org/manual/5.2/manual.html#pdf-io.popen

-- 
NI!

() - www.asciiribbon.org
/\ - ascii ribbon campaign against html e-mail and proprietary attachments