Question with CGI at JaguarPC..

J. Landman Gay jacque at
Wed Feb 20 15:49:54 EST 2008

Chipp Walters wrote:
> Hi all,
> I'm still trying to get a cgi working at JaguarPC. I've created a folder
> mycgi and put the revolution engine in it, etc. I've successfully created a
> 'helloworld.cgi' which works.
> Next I used Jacque's script....changed it to echo.cgi and it works
> fine.
> Then, I created a small cgi, that opens a simple stack and reads from the
> first card and outputs it. This works fine using my localmachine webserver.
> While part of the script rund, the stack never opens using my Jaguar
> account.
> Here's the script:
> #!revolution
> on startup
> put "Content-Type: text/plain" & cr & cr
> put "Hello World!"
> put the files
> put cr & the version
> --> RETURNS 2.6.6
> if there is a file "BasicComments.rev" then
> put cr & "found it"
> open stack "BasicComments.rev"
> put the long name of field 1 of stack "BasicComments.rev" into t
> put t
> close stack "BasicComments.rev"
> else
> put "Can't find it"
> end if
> put "done"
> end startup
> I've checked permissions and everything seems ok. The stack is named in the
> files list the cgi renders to text, just it never runs. The capitalization
> of the stack seems correct. Is there an issue with Linux Rev 2.6.6 engine?
> Any help is much appreciated :-)

You can't "open" files in a cgi script (opening a stack requires the UI, 
which doesn't exist in the cgi engine.) You have to "start using stack" 
instead. Change the "open stack" line to "start using stack" and it 
should work.

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the Use-livecode mailing list