Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

cgi script not working with newest Rebol core

 [1/5] from: marj:msi at: 30-Nov-2000 11:32


Guys -- 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 ... quit I also tested this script: #! /usr/people/marj/rebolStuff/rebol -csq REBOL [] print "Content-Type: text/plain" print "" print "hello" quit Doesn't work either - same error message. I have read the networking chapter and tried a few variations of the first line (--cgi, -cs, -csq, etc), and I haven't hacked the server or anything else on the SGI since when the cgi script was running with the previous experimental rebol core version. I'm running the NCSA/1.5.2a httpd server on port 8080. Can anybody help? thanks! Marj -- Marjorie A. Tiefert Principal Scientific Writer & Documentation Website Manager Life Sciences Information Design Molecular Simiulations Inc (http://www.msi.com/)

 [2/5] from: rebol:svendx:dk at: 30-Nov-2000 21:27


Hello Marj, Are you sure the new rebol executable has correct permissions set, ie. executable by the user the web server runs as? /Thomas On 30-Nov-00, you wrote:
> Guys -- > I just downloaded the latest experimental Rebol core for SGI (yesterday),
<<quoted lines omitted: 37>>
> Life Sciences Information Design > Molecular Simiulations Inc (http://www.msi.com/)
Best regards Thomas Jensen

 [3/5] from: jeff:rebol at: 30-Nov-2000 11:29


Howdy, Marj: On our SGI box, the following script is working as expected using the latest experimental on apache 1.3.9. #!/usr/local/apache/cgi-bin/rebol -cs REBOL [] print "Content-type: text/plain^/^/" print "Hello" 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. :) -jeff
> I just downloaded the latest experimental Rebol core for > SGI (yesterday), and a Rebol cgi script that used to work
<<quoted lines omitted: 18>>
> ... > quit
. . .

 [4/5] from: marj::msi::com at: 30-Nov-2000 12:47


Thomas -- Duh! -- the one thing I didn't think to check! (since it was always OK before, somehow) That fixed it - thanks a bunch! Marj At 09:27 PM 11/30/00 +0100, Thomas Jensen wrote:
>Hello Marj, >Are you sure the new rebol executable has correct permissions set, ie.
<<quoted lines omitted: 73>>
>[rebol-request--rebol--com] with "unsubscribe" in the >subject, without the quotes.
-- Marjorie A. Tiefert Principal Scientific Writer & Documentation Website Manager Life Sciences Information Design Molecular Simiulations Inc (http://www.msi.com/)

 [5/5] from: rebol:svendx:dk at: 30-Nov-2000 23:03


Hello Marj, On 30-Nov-00, you wrote:
> Thomas -- > > Duh! -- the one thing I didn't think to check! (since it was always OK > before, somehow) > > That fixed it - thanks a bunch!
np, I had exactly the same problem about a month ago on my FreeBSD box :-) /Thomas

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted