[REBOL] Re: Registry Entry For CGI - Windows XP
From: tim-johnsons:web at: 17-Feb-2005 8:09
SunandaDH-aol.com wrote:
>Tim:
>
>>Has anyone got this working successfully?
>>
>>
>
>This may not help directly. But this is what we do with REBOL.org.
>
>All CGI scripts have a shebang. The uploader (we wrote our own -- it does
>lots of useful things) will change the shebang (if there is one -- not all
>uploaded files are CGI scripts) to the correct shebang for the target destination.
>
Hi Sunanda: That is a great approach. I fact I've been toying with the
idea of database-driven uploads
where the database controls where the upload goes, makes a record of it,
changes she-bang, etc.
It turns out that my solution was to put rebol in c:\usr\bin. Even with
ScriptInterpreterSource turned on, it appears that apache will still
try to resolve the shebang line,
and now it sees #!/usr/bin/rebol and resolves it to c:\usr\bin\rebol.exe
And my domain hoster says that he would be happy to be set up symlinks
at /usr/bin/rebol/rebol
/usr/bin/python/python, usr/bin/perl/perl, etc. That would allows us to
set up seperate folders for
perl, rebol and python at c:\usr\bin\rebol\rebol.exe etc and set
shebangs as #!/usr/bin/rebol/rebol et. al.
This brings up another thought ..... some time ago (if memory serves me
correctly) there was a url to
a more advanced ftp system written in rebol. Does anyone know of it?
Thanks for the ideas.
tim