Problems with rebol startup (CGI)
[1/3] from: tim::johnsons-web::com at: 19-Sep-2000 12:40
Hi John:
Thanks!! More below....
> Hi Tim,
> Have you tried setting the environment variable REBOL_HOME="c:\program
> files\rebol" ?
Yes. Works for command line.
> Rebol will alsp pick up a user.r from the current directory.
> cheers, john
And I find this also to be true for command-line scripts,
however when I run cgi script
from a directory with user.r present in that directory, it doesn't
seem to be evaluated.
value data in the registry is set to:
C:\Program Files\View\rebol.exe -cs %s
And cgi scripts work fine.
Do I perhaps need to add user.r there?
I'm nervous about trying it so faor because
I don't like to do anything in the registry
without being thoroughly informed.
Any other ideas?
And I'm going to check Elan's book.... :)
Regards
Tim
[2/3] from: rebol:techscribe at: 19-Sep-2000 14:31
Hi Tim,
my book doesn't cover View (and therefore contains no information about
that monster known as the Windows registry ;-). Recall that /Core does not
use the registry!
I tried simulating your problem using the Windows run dialog box
(Start button -> Run) instead of using a Web Server (i.e. CGI program). The
purpose is to determine if the behavior you observed has to do with REBOL
and the registry, or whether it has to do with how REBOL is executed by the
Web server you are using at the time REBOL gets called in your CGI script.
If you duplicate the following steps do you get the same results? (My
REBOL_HOME environment variable BTW is set to my /Core directory, not the
/View directory. The user.r file I modify in the following steps is in
/View's directory, because /View is associated with .r files in the Windows
registry, not /Core.)
1. My .r files are associated with REBOL/View in the registry. (View did
that automatically during installation).
2. I added a line to the user.r file in the View directory that displays
print "this is user.r"
3. I saved a REBOL script to my \temp directory. This script simply
contains the two lines
ask "Whazzzup? "
halt
4. I brought up the Run dialog (Start -> Run ...) and entered d:\temp\test.r.
5. Then I clicked OK.
6. The REBOL shell was started.
7. The REBOL shell correctly displayed
this is user.r
whazzzup?
end then closed once I hit return.
This means that when REBOL/View was launched by MS Windows because it is
associated with .r files in windows registry, View first processed the
user.r file in its startup directory, and then proceeded to process the
test.r file in the \temp directory as expected.
At 12:40 PM 9/19/00 -0800, you wrote:
>Hi John:
>Thanks!! More below....
<<quoted lines omitted: 28>>
>>
>> 8<--
;- Elan [ : - ) ]
author of REBOL: THE OFFICIAL GUIDE
REBOL Press: The Official Source for REBOL Books
http://www.REBOLpress.com
visit me at http://www.TechScribe.com
[3/3] from: tim:johnsons-web at: 19-Sep-2000 13:57
Hi Elan:
I have done pretty much as you have. With similar
results. As far as CGI goes, I'm moving gradually
to Linux, so don't have a great need to solve this.
It is CGI related only.
When I get done with setting up Apache
on my RHL box, I think I'll stick it on my WinNT
machine too....
Thanks!! :)
Tim
[rebol--techscribe--com] wrote:
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted
Librarian comment