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

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

From: dominique:microplus at: 19-Mar-2003 10:51

hi everybody, because I had the same problems on Apache and Windows NT, I made a few tests : Following lines are citations from the Rebol-core User Guide page 11-3 and 11-4 : " The standard character for separating directories is the forward slash (/), not the backslash(\) File paths that do not begin with a forward slash (/) are relative paths. To refer to the C volume that is often used by Windows, the notation is : %/C/docs/file.txt Notice in the above line that the disk volume C is not written as : %c:/docs/file.txt The above example is not a machine independent format and causes an error " Refering to this information (and not having other Information in the Chapter CGI of this guide), I thought I had to respect the same conventions for the shebang-line as for files. I first tried #!/C/Programme/Rebol/core/rebol -cs and had the same problem than Dave Fobare (".... all attempts ... ended up with the source of the file being pushed to the browser as if it were a .txt file.") I tried a lots of different solutions without success For a few minutes, trying the solution proposed by Louis (see email below), I had it ============= GREATE THANKS TO LOUIS ========================= ====== I tried following lines : #!C:/Programme/Rebol/core/rebol.exe -cs works fine (no space between #! and C) #! C:/Programme/Rebol/core/rebol.exe -cs works fine (a few spaces between #! and C) #!C:\Programme\Rebol\core\rebol.exe -cs works fine (I believe Rebol convert \ in / ) #!C:\Programme\Rebol\core\rebol -cs works fine (without .exe) And now it worked properly, following lines PRODUCE AN ERROR (and don't push the file to the browser as if it were a .txt file ANY MORE) #!/C:/Programme/Rebol/core/rebol.exe -cs #!/C:/Programme/Rebol/core/rebol -cs #!/C/Programme/Rebol/core/rebol.exe -cs #!/C/Programme/Rebol/core/rebol -cs -- dom