Is it the same result when scripts are in cgi-bin/ or another error?

if you suspect a line terminator thing, try transfering the script with
write/string/with ... and the appropriate line terminator specified.

I think that there may be another problem; are you sure that you have
uploaded the correct version of rebol, ie. for the right OS and CPU?

rebol.exe sure sounds like a Windows/DOS thingy, and that's not what you
want to upload to a UN*X server.

Maybe some of the UN*X gurus here can help you find out which version to
upload.


Best regards
Thomas Jensen


On 21-Nov-99, [EMAIL PROTECTED] wrote:

> Thank you. I have tried but it is still not working. Could it not be that I
> am sending this (FTP) from a PC to a Unix machine? What is this thing about
> line terminators?
> 
> Johan
> 
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, November 21, 1999 3:40 .-* +
> Subject: [REBOL] Re: Rebol cgi programs
> 
> 
> Hello Johan,
> 
> I'm by no means a CGI expert, but maybe some experiences I've had can help
> you.
> 
> I believe that most (all?) web servers must be configured to know which
> directories contain (cgi-)scripts and which contain data.
> Standard is data, and that's what happens when the url is refered in your
> case - the server see your .r file and doesn't recognize the extension,
> after which it returns the file as text/plain.
> 
> You are probably not allowed to set permissions/modes on the directories.
> 
> If there is a directory in your site root called cgi-bin, you might try
> this:
> 
> copy your scripts to cgi-bin/
> add this to the top of the scripts:
> #!../rebol/rebol -s
> 
> I don't know about the path thing though, you might have to experiment a
> bit.
> 
> 
> I see one danger here; what if something goes wrong and rebol prompts
> starts popping up on the server screen :-/
> 
> I might be useful to have a rebol exe which under no circumstances would
> require user interaction and would simply quit silently if anything went
> wrong.
> 
> 
> Good luck!
> 
> Thomas Jensen
> 
> 
> On 20-Nov-99, [EMAIL PROTECTED] wrote:
> 
>> I have been working for some time now with PERL cgi, but so far I cannot
> get
>> any REBOL cgi programs running. Even the cgiform.r only opens up REBOL
>> instead of returning the information submitted by the form.
>> 
>> Can someone please explain to me exactly how to get this working? I am
> using
>> a commercial hosting service. I uploaded the REBOL.exe file to the rebol
>> subdirectory, as well as cgiform.r and cgiform.html. I specified the path
> to
>> REBOL simply as #!rebol. You can go to
>> http://www.webdomain.co.za/rebol/cgiform.html to see what happens next.
> Does
>> the hosting service have to set up their servers before REBOL will run on
>> it, or is uploading the REBOL.exe enoough?
>> 
>> Johan
>> Cape Town South Africa
>> 
> 
> 
Regards

Reply via email to