|
Pages: [1]
|
 |
|
Author
|
Topic: Rebol on Software602 Lansuite2004 (Read 269 times)
|
|
rspyder
|
A problem...
I have set up my Windows XP Home running Software602 Lansuite 2004 as my webserver to execute Rebol scripts. According to the Lansuite log file, LanSuite sees a valid .cgi file (now.cgi) and has the correct path to rebol and creates the proper command line
c:\cgi-bin\rebol.exe c:\webfiles\cgi.bin\now.cgi
The commad appears to execute now.cgi properly, but nothing is displayed on my web browsers (IE7 and Firefox 2.0). The web browser does indicate "done" By removing the -c in the
#!c:\cgi-bin\rebol.exe -c
I can get my web browsers to lock up waiting for a response.
Anyone have a clue as to what is happening? here is now.cgi
#!\cgi-bin\rebol.exe -c REBOL [Title: "Server Time"] print ["content-type: text/html^/"] print [<HTML><BODY>] print ["Date/time is:" now] print [</BODY></HTML>]
roger
|
|
|
|
|
Logged
|
|
|
|
|
Sunanda
|
A couple of suggestions: 1 I always have -cs rather than just -c on my shebangs 2. You may need a blank line between the shebang and the REBOL [..]3. Try adding a quit at the end of the script (after the last print) 4. If the browser is getting nothing back, then perhaps the server process is dying in some way. Maybe it is failing to find the rebol.exe at all -- is there anything in the server access or error logs? 5 If all else fails -- try a different webserver. I do all my development (including most of the CGI coding for http://www.REBOL.org ) using Xitami.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |