In the enviroment I must use all cgiscripts must end in .cgi
so the solution is to begin each script with a shebang line

#! /path_to_rebol/rebol -cs
rebol[]
... 

as an aside:

I also use so adorned scripts as 'normal' shell commands 
as my co-workers typicaly can't/don't want to deal with the interperter

suprisingly (delightfuly) rebol ignores the leading line and 
the scripts run either from a shell or rebol prompt.
  

On Tue, 4 Dec 2001, Brett Handley wrote:

> oops. That's true, I missed that crucial piece of evidence. :-/
> 
> Brett.
> 
> ----- Original Message ----- 
> From: "Graham Chiu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 04, 2001 11:45 AM
> Subject: [REBOL] Re: cgi weirdness
> 
> 
> > On Tue, 4 Dec 2001 10:49:12 +1100
> >  "Brett Handley" <[EMAIL PROTECTED]> wrote:
> > > 
> > > I'm not an expert on CGI but to me it appears that the
> > > webserver does not
> > > recognise your script as a CGI so it just picks it up and
> > > sends it out as
> > > the content itself, rather than executing it.  I would
> > 
> > Hmm.  Then he wouldn't see the Rebol help screen though.
> > 
> > I've had the same problem recently as well - haven't had a
> > chance to see why ...
> > 
> > --
> > Graham Chiu
> > -- 
> > 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.
> 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to