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

[REBOL] Linux CGI problem

From: rebol665::ifrance::com at: 2-Jun-2002 23:46

Hi rebollers, I am trying to run a very simple CGI script with Apache 1.3.23 under Linux. 1. This script starts with the following two lines #!/home/pat665/core/rebol -cs rebol [] 2. The script is called from under IE (Windows machine) with 3. Inside the browser, I got only one word for response REBOL 4. Using proxy.r with debug-all set to true, I am able to see what I am getting from Apache. {HTTP/1.1 200 OK^M Date: Sun, 02 Jun 2002 21:31:02 GMT^M Server: Apache-AdvancedExtranetServer/1.3.23 (Mandrake Linux/4mdk)^M The command line usage is: ^M Connection: close^M Content-Type: text/plain^M ^M ^-REBOL <options> <script> <arguments> All fields are optional. Supported options are: ^---cgi (-c) Check for CGI input ^---do expr Evaluate expression ^---link url Connect to Link ( etc ) 5. In fact, I am getting the REBOL syntax for the command line 6. On the Linux machine ( I got the same result with http://localhost/cgi-bin/cgi-hw.cgi . 7. From the console, I can start the script with this command line /var/www/cgi-bin/cgi-hw.cgi The result is again a remainder of the REBOL syntax for the command line except that it is not displayed in Mozilla but on the console. I am at a loss. Any idea, any debugging tips will be greatly appreciated ... Patrick