[REBOL] Re: cgi script not working with newest Rebol core
From: jeff:rebol at: 30-Nov-2000 11:29
On our SGI box, the following script is working as expected
using the latest experimental on apache 1.3.9.
print "Content-type: text/plain^/^/"
The REBOL is world readable and executable, as is the
script. I called the script tst.r.
Try wrapping the script with a shell script that prints out
your content type before calling the script so that you can
see what is malformed. Maybe it's getting an error reading
a user.r or something?
Wish I had ability to diagnosis. :)
> I just downloaded the latest experimental Rebol core for
> SGI (yesterday), and a Rebol cgi script that used to work
> is now giving a 500 Server Error message about malformed
> header from script.
> The script works fine if I run it from the command
> line. All my other scripts (which run as cron jobs) run
> fine. I'm using an SGI Indigo 2/R4k, IRIX 6.2. (and can't
> run the non-experimental SGI version of Rebol core at all,
> but that's another story).
> The script sits within a directory, is named index.cgi, and
> clicking an href to that directory runs the script to list
> certain files in the directory -- or at least it used to!
> The relevant parts of the script look like:
> #!/usr/people/marj/rebolStuff/rebol -q
> REBOL [ yaddayadda... ]
> cgi-head: [ "Content-type: text/html" newline newline ]
> print cgi-head
. . .