Question with CGI at JaguarPC..

Chipp Walters chipp at chipp.com
Wed Feb 20 16:12:31 EST 2008


Jacque (or anyone else),

I've installed the latest best 2.9 Linux revolution and now the
helloworld.cgi doesn't even work. Are you (or anyone) using the 2.9 latest
beta successfully, and if not, can you point me to a version which does
actually work, which also works with the lastest stack file formats? I
imagine there are some shared library dependencies which may not be 'hooked
up correctly' for 2.9 to work-- though this is only a guess.

-Chipp

On Wed, Feb 20, 2008 at 2:49 PM, J. Landman Gay <jacque at hyperactivesw.com>
wrote:

> 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 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.6engine?
> > 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 hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list