REBOL 031 doesn't work as CGI under Windows
[1/2] from: filippotoso::libero::it at: 29-Mar-2005 15:04
Hi all,
I'm trying to use REBOL 031 as CGI/Command Line script interpreter under
Windows 95/98/2000 without success.
I have uploaded a demo script ("Hello World" script) here:
http://www.humanprofile.biz/downloads/rebol.zip
It contains the following simple script:
------------ cut ------------
REBOL [Title: "Hello World Script"]
print "Hello World!"
------------ cut ------------
I have tried to call REBOL from command line with the following parameters:
REBOL -c hello.r
REBOL -c -s hello.r
REBOL --cgi hello.r
REBOL --cgi --script hello.r
REBOL --cgi --secure throw hello.r
REBOL --cgi --secure throw --script hello.r
No one of the above will do what expected (print to the standard output the
Hello World!
text).
Anyone can help me?
Sincerely,
Filippo Toso
[2/2] from: SunandaDH::aol::com at: 29-Mar-2005 8:40
Filippo:
> I'm trying to use REBOL 031 as CGI/Command Line script interpreter under
> Windows 95/98/2000 without success.
You don't say what web server you are using. Precise install instuctions vary
for Apache, PWS and IIS.
As a CGI program, your script is lacking a shebang (the line that tells the
web server where to find REBOL.exe -- though you may not need one with PWS).
Basic notes on writing a REBOL CGI script here:
http://www.rebol.com/docs/cgi1.html
More info on web servers here:
http://www.rebol.com/docs/setup.html
http://www.rebol.com/faq.html
Sunanda.