[EMAIL PROTECTED] 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

>That enables each of us to have a fully working copy of the library, each 
>with a different set-up (we range from Wni98+Xitami to Linux+Apache). The 
>uploader simply changes the shebang to match the target.
>
>So no need to disable shebang detection under Windows -- which is a plus 
>point, as it means scripts don't unexpected fail when uploaded if they have a 
>mistyped or missing shebang.
>
>Sunanda.
>  
>



-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to