Hello,

> On NT 4.0 in my CMD.EXE window, why does
>
>     e:\rebol\rebol.exe --cgi sample.r
>
> product no output, but
>
>     e:\rebol\rebol.exe --cgi sample.r | more
>
> produce the correct output? (My configurations etc are
> listed in the message below.)

When you run Rebol in --cgi mode, it is only supposed to produce output
to a webserver, never to the console! Otherwise if your CGI would be
working, it would open a rebol window everytime you ran a cgi script
(apache doesn't have its own console).

But is CGI running yet? Have you tried a script like this:

#!path/to/rebol.exe -cs

REBOL []

print "Content-Type: text/plain^/^/"
print "Just testing!"

Name this script test.cgi and place it in your /cgi-bin/ as defined in
your config. The association you made for Rebol only matters to your NT
system, NOT to Apache, if you would like to set Apache up for .r
execution (and I could never be bothered) you must add an AddHandler
command to your config. Put one below "AddHandler cgi-script .cgi" that
reads: "AddHandler cgi-script .r" and that should work (never tried it,
though)...

Good luck,
Rachid

Reply via email to