Hi,
the web server returns Internal Server Error when REBOL exits or
crashes without printing the required CGI header, this happens when
REBOL security exception occurs. Try disabling security with -cs, not
--cgi or -cgi:
#!/usr/home1/geneven/html/cgi-bin/rebol -cs
Also, I'd double check script's end of line characters and permissions,
which must be 711 for both rebol and the script.
My test script worked with REBOL 2.2, I tried it and it still works
with REBOL 2.5.
http://hammer.prohosting.com/~rebol/cgi-bin/cgitest.cgi
hope this helps,
--
Michal Kracik
Gene Venable wrote:
>
> So, that's a good guess, but would that give perfect output
> except for the help?
>
> I changed to --cgi and got
>
> Internal Server Error
> The server encountered an internal error or
> misconfiguration and was unable to complete your request.
> Please contact the server administrator,
> [EMAIL PROTECTED] and inform them of the time
> the error occurred, and anything you might have done that
> may have caused the error.
>
> More information about this error may be available in the
> server error log.
>
> as my output. I'm not sure this is a big improvement over
> perfect output plus extraneous help output. I'll try
> infinite other things when I come back from work tonight...
>
> --Gene
>
> --- Anton <[EMAIL PROTECTED]> wrote:
> > I think it should be --cgi, or -c.
> > Note number of hyphens.
> >
> > Anton.
> >
> >
> > > #!/usr/home1/geneven/html/cgi-bin/rebol -cgi
> > > REBOL []
> > > print "Content-Type: text/plain^m^j"
> > > print "Hello world from REBOL"
> > > print mold system/options/cgi
> > > print system/version
> > >
> > > Now, below is what happens when I run the above script.
> > >
> > >
> > >
> > > REBOL <options> <script> <arguments>
> > >
> > > All fields are optional. Supported options are:
> > >
> > > --cgi (-c) Check for CGI input
> >
> >
> > --
> > To unsubscribe from this list, please send an email to
> > [EMAIL PROTECTED] with "unsubscribe" in the
> > subject, without the quotes.
> >
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.