lua-users home
lua-l archive

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


On Aug 5, 2013, at 7:50 PM, Henrique Gogó <henriquegogo@gmail.com> wrote:

> I found a way to get env variables, but using bash command.
> But I don't want to use this approach. I dont think this is a good option
> to get environment variables.

Indeed this is a bit over the top. os.getenv() should do just fine for CGI.

http://www.lua.org/manual/5.2/manual.html#pdf-os.getenv