|
Ok, it looks like I misread the question and
got it backwards. You’re not trying to use the command line Lua
interpreter in cgi, you want to use cgilua from the command line. My bad. =) Patrick From:
lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br]
On Behalf Of McMorris, Patrick It depends what you’re trying to do. I haven’t actually tried it but
would expect it to be like any other scripting language. If you just want to execute a Lua script
using cgi then all the normal rules apply. 1) You need to tell you http server that
its ok to execute your cgi. Look in the docs for your http server on how
to do this 2) Rename your .lua file to a .cgi file 3) Add a line at the beginning of the file
to indicate what interpreter to use: - something like:
#!/usr/bin/lua <- likely wrong, but you fixup this path 3) Set the rights on the file such that
the http server can execute it. I’m not aware of needing to do
anything out of the ordinary for Lua (I could be wrong). Patrick From:
lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On
Behalf Of Jorge Renato Machin Ibarra Hi I want to run a lua page (cgilua) in command line in a linux
system. Do you know how to do this? Thanks in advance |