Rebol/view as a CGI app
[1/7] from: mat::b::codeplay::com at: 9-Jan-2002 17:32
Hello Mat,
Firstly sorry for not changing the subject.
MB> I'm trying to get Rebol to work with Xitami.
Turns out what I was doing wrong was trying to use Rebol/view. This
just doesn't work at all. Rebol/core does of course. However I needed
the shall command so I've had to use the ancient Rebol/command I have.
I assume this is desired behavior and --cgi is disabled on Rebol/view
in some unfathomable marketing/product positioning decision?
Regards,
Mat Bettinson
Codeplay
Tel: +44 (0)20 7482 3382
140-142 Kentish Town Rd, London, NW1 9QB
http://www.codeplay.com
[2/7] from: al:bri:xtra at: 10-Jan-2002 8:18
> MB> I'm trying to get Rebol to work with Xitami.
>
> Turns out what I was doing wrong was trying to use Rebol/view. This just
doesn't work at all. Rebol/core does of course. However I needed the shall
command so I've had to use the ancient Rebol/command I have.
> I assume this is desired behavior and --cgi is disabled on Rebol/view in
some unfathomable marketing/product positioning decision?
Hi, Matt.
I think there's something wrong with your computer or rebol installation.
I'm using Xitami and Rebol/View on Windows XP with no problems at all.
Here's the line I use in my Rebol scripts:
#! c:\Rebol\View\rebol.exe -cs
If that doesn't help, try again?
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
[3/7] from: mat:plothatching at: 10-Jan-2002 8:59
Hi Andrew,
AM> I think there's something wrong with your computer or rebol installation.
AM> I'm using Xitami and Rebol/View on Windows XP with no problems at all.
AM> Here's the line I use in my Rebol scripts:
AM> #! c:\Rebol\View\rebol.exe -cs
AM> If that doesn't help, try again?
I've literally been switching out the above with
#!C:\Rebol\rebolcmd.exe --cgi -s
(The switches taken from an actual example in the manual)
This line works, so does the regular Rebol/core (just rebol.exe) but
View does not. It gets launched but never actually does anything and
eventually Xitami terminates it.
Regards,
Mat.
[4/7] from: al:bri:xtra at: 10-Jan-2002 22:42
Hi, Matt.
It sounds like your rebol installation is bad. I think that Rebol/View
doesn't like being called %rebolcmd.exe. It's probably trying to install
itself when called by Xitami?
If you want to run Rebol/View and Rebol/Core at once, consider doing what
I've done, which is to have one directory, like:
%/C/Rebol/
with two subdirectories, inside it like:
%/C/Rebol/View/
and:
%/C/Rebol/Core/
Then put Rebol/Core in it's directory and Rebol/View in it's directory.
Then check them out to make sure that both work OK, then try them out again.
Be sure that the REBOL_HOME variable in your autoexec.bat file is changed
and that you've rebooted your system. The end result is two Rebol
executables which are at:
%/C/Rebol/Core/Rebol.exe
and:
%/C/Rebol/View/Rebol.exe
Then in the %/C/Rebol/ directory, you can store your Rebol scripts and
it's all tidy and so on.
I hope that helps! If not, please let me know, or email the list?
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
[5/7] from: mat:b:codeplay at: 10-Jan-2002 10:25
Hello Andrew,
AM> It sounds like your rebol installation is bad. I think that Rebol/View
AM> doesn't like being called %rebolcmd.exe. It's probably trying to install
AM> itself when called by Xitami?
No, that's now what I have done. The command line I quoted works;
#!C:\Rebol\rebolcmd.exe --cgi -s
This really IS Rebol/Command. The above also works if I use just plain
rebol.exe, IE Rebol/Core.
What does NOT work is if I do ANYTHING like the following;
#!C:\Rebol\view\rebol.exe --cgi -s
This just doesn't work. It hangs. Doesn't matter what switches I use
either, I've tried dozens of combinations. I can run the exact path
and my Rebol/View just goes straight into the console and doesn't try
to install itself with the nasty pop up GUI thing.
AM> If you want to run Rebol/View and Rebol/Core at once, consider doing what
AM> I've done, which is to have one directory, like:
AM> %/C/Rebol/
AM> with two subdirectories, inside it like:
AM> %/C/Rebol/View/
AM> and:
AM> %/C/Rebol/Core/
I just leave Rebol/Core and Rebol/Command in the %/C/Rebol/ dir.
AM> Then put Rebol/Core in it's directory and Rebol/View in it's directory.
AM> Then check them out to make sure that both work OK, then try them out again.
They all work, I'm not a complete fool. :)
AM> Be sure that the REBOL_HOME variable in your autoexec.bat file is changed
AM> and that you've rebooted your system. The end result is two Rebol
AM> executables which are at:
AM> %/C/Rebol/Core/Rebol.exe
AM> and:
AM> %/C/Rebol/View/Rebol.exe
AM> Then in the %/C/Rebol/ directory, you can store your Rebol scripts and
AM> it's all tidy and so on.
I didn't know about the REBOL_HOME var actually. Not that it appears
to matter much. I have Rebol/view (pro) registered in the system to
execute scripts without security etc. It works well.
AM> I hope that helps! If not, please let me know, or email the list?
The only solution I can think of is to work out what the hell is
happening with Rebol/View when I'm calling it.
Regards,
Mat Bettinson
Codeplay
Tel: +44 (0)20 7482 3382
140-142 Kentish Town Rd, London, NW1 9QB
http://www.codeplay.com
[6/7] from: al:bri:xtra at: 11-Jan-2002 7:40
Hi, Matt, you wrote:
> The only solution I can think of is to work out what the hell is happening
with Rebol/View when I'm calling it.
You do know that Rebol/View's %User.r and %Rebol.r are different from
Rebol/Core's %User.r and %Rebol.r, don't you? It sounds like you've got all
the rebol versions using the same versions of these files.
> I didn't know about the REBOL_HOME var actually.
It's recommended to be put into autoexec.bat for Rebol/Core. If you haven't
provided it, then this is probably the reason why Rebol/Core works (because
it can't find it's home directory, and so _ignores_ %User.r and %Rebol.r.
Here's the entry from %setup.html from Rebol/Core:
On Windows 95+ systems, edit the C:\autoexec.bat file and add a line such
as:
set REBOL_HOME=c:\REBOL
I hope that helps!
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
[7/7] from: mat:plothatching at: 10-Jan-2002 23:06
Hi Andrew,
AM> You do know that Rebol/View's %User.r and %Rebol.r are different from
AM> Rebol/Core's %User.r and %Rebol.r, don't you? It sounds like you've got all
AM> the rebol versions using the same versions of these files.
Well not exactly. Rebol/core and Rebol/command are using the user.r
and rebol.r in C:/Rebol/ but Rebol/view uses the files in
C:/Rebol/View/ because that's where's it's installed. Now Rebol/view
when you set it up IE run it for the first time, appears to set up
it's path independently. I'm not sure where, but it works and it's
installed and I don't have to touch it to run scripts. So I fail to
see why it just hangs when called as a CGI app from Xitami.
>> I didn't know about the REBOL_HOME var actually.
AM> It's recommended to be put into autoexec.bat for Rebol/Core.
I've never needed it on any machine to date.
AM> On Windows 95+ systems, edit the C:\autoexec.bat file and add a line such
AM> as:
This is a Win2K box.
AM> I hope that helps!
Not really but I'm somewhat past caring, the old rebol/command appears
capable of running the scripts I need so I guess I'll have to keep
using that ;)
Regards,
Mat.