Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Trying to get Rebol CGI working on my website

From: gscottjones:mchsi at: 22-Mar-2003 6:00

Hi, Dave, From: "Dave Fobare" ...
> I just got a message from a tech at ReadyHosting.com, > my Win2K host. Short and sweet he tells me: > > "03/21/03 - Rebol031.exe installed on 63.119.175.55 for > the-sports-page.com."
Congrats! Your hosters must be more open minded than most!
> Sooooo......, I try to execute the "hello, world" example --- > now.cgi. Here is what comes back to my browser: > > Bareword found where operator expected at > d:\html\users\the-sports-pagecom\html\cgi-bin\now.cgi line 5, near > ""Date/time is:" now" > (Missing operator before now?)
...
> The "shebang" line looks as though it is being ignored -- I've > done all sorts of things to it(including eliminating it) and still > get the same message. Yet why do my perl scripts work ok? > Don't get it. Is the above really a Perl error message? ...
I don't know if this is a Perl error message. My guess is that the .cgi and .pl are still mapped to run perl scripts either because of the IIS configuration and/or the registry. Perhaps the "shebang" line is ignored for any script (or at least those scripts ending with these two extensions). The very next thing I would try is to rename the script with a .r extension, and see if this extension is mapped to REBOL, both with and without a shebang line in the script. If this experiment shows that a shebang line is needed for any script not ending in .pl and .cgi, but is still not running the script through REBOL, I would double check whether you are to use the shebang line to point to your *own* REBOL exe, or to the hoster's installed copy (presumably in a different directory). Good luck! --Scott Jones