Question with CGI at JaguarPC..

Chipp Walters chipp at chipp.com
Wed Feb 20 15:44:55 EST 2008


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 echo.mt 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"

--> SCRIPTS STOPS EXECUTING HERE
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

--> BELOW NOT EXECUTED
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 :-)

-Chipp



More information about the use-livecode mailing list