[EMAIL PROTECTED] wrote:
> You sure your webserver is set up properly?
> What're you using anyway?
Pretty sure, and Apache. Here's why I think my web server is set up properly: when I
run the script *by hand* by doing ./test-cgi.r, I get the same apparently erroneous
behavior as when the web server invokes the script. The first line (
#!/usr/local/bin/rebol -cs ) should invoke Rebol with -cs and feed it the rest of the
file as script to interpret. This *should* suppress the initialization strings, and
exit the script when complete if I understand -c / --cgi correctly. The behavior is
the same --- and wrong --- when Apache invokes the script and when I invoke it by
hand. I get the *correct* behavior when I run rebol -cs test-cgi.r from the shell.
This leads me to believe that for some reason rebol isn't getting its arguments ( -cs
) when invoked via "shell magic" #!/foo/rebol <args>.
Thoughts?
jb
>
>
> Sterling
>
> > Nope, same symptoms. --cgi and -c are synonyms, no? When I change the first
> > line to #!/usr/local/bin/rebol -cs, I get the same behavior as with <blah> --cgi
> > -s, namely: Rebol initialization strings print, and the interpreter does not
> > exit when the script is finished.
> >
> > jb
> >
> > [EMAIL PROTECTED] wrote:
> >
> > > Do
> > > #!/usr/local/bin/rebol -cs
> > > instead.
> > >
> > > That should solve your problem.
> > >
> > > Sterling
> > >
> > > > I can't seem to get cgi-bin stuff working properly, and the problem seems
> > > > sort of strange. I'm using the latest Rebol on a late (2.2 kernel) Red Hat
> > > > Linux. I have a file (test-cgi.r) which has the magic incantation on the
> > > > first line:
> > > >
> > > > #! /usr/local/bin/rebol --cgi -s
> >
> >