Sloooooooow Rebol
[1/13] from: castellani-cpt::itautec-philco::com::br at: 28-Aug-2003 13:41
Hi
I install rebol031 in a folder in my PC (Windows 2000 Professional), IIS and
Personal Web Services. In IIS folder (c:\inetpub\wwwroot) I put some rebol
scripts and when I go to the Internet Explorer to run it I got the message
(after minutes waiting) "CGI Limit Time".
Well, I think I forgot to configure something (I configure my PC using it:
http://www.jansfreeware.com/articles/pwsrebol.html). Someone can help me ???
I've writing some simple Rebol scripts to run in command line and I love it.
A hug...
Marcelo
[2/13] from: rebol:techscribe at: 28-Aug-2003 12:00
Hi Marcelo.
I have not been following Microsoft's recent technologies very
carefully, but isn't (Personal) Web Services a .NET technology? The
Personal Web Server configuration on Jan's Web page that you quote
describes a Serv"er" not Serv"ices". It describes a different
technology, namely a server software that Microsoft used to (or still
does?) give away for free, called PWS, or Personal Web Server.
Hope This Helps,
Elan
Marcelo Fontes Castellani wrote:
[3/13] from: castellani-cpt:itautec-philco at: 28-Aug-2003 16:22
RES: Re: Sloooooooow Rebol
Sorry, is Personal Web SERVER, not Services...
Marcelo
-----Mensagem original-----
De: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Em nome de
Elan
Enviada em: quinta-feira, 28 de agosto de 2003 16:01
Para: [rebol-list--rebol--com]
Assunto: [REBOL] Re: Sloooooooow Rebol
Hi Marcelo.
I have not been following Microsoft's recent technologies very
carefully, but isn't (Personal) Web Services a .NET technology? The
Personal Web Server configuration on Jan's Web page that you quote
describes a Serv"er" not Serv"ices". It describes a different
technology, namely a server software that Microsoft used to (or still
does?) give away for free, called PWS, or Personal Web Server.
Hope This Helps,
Elan
Marcelo Fontes Castellani wrote:
[4/13] from: SunandaDH:aol at: 28-Aug-2003 16:36
Re: Sloooooooow Rebol
Marcelo
> Well, I think I forgot to configure something (I configure my PC using it:
> http://www.jansfreeware.com/articles/pwsrebol.html). Someone can help me
???
> I've writing some simple Rebol scripts to run in command line and I love
it.
Welcome to REBOL! I've been doing a lot of REBOL and CGI work lately. They
are a good combination.
I've not used REBOL with IIS, but in my experience, this sort of webserver
timeout problem is caused by a malformed script. Try the following, in no
particular order of importance:
1. make sure your *.r association is to a version of Core, not View (some
people have reported that CGI and View don't mix).
2. End your script with a Quit rather than just dropping off the end.
3. Make absolutely sure the first thing printed is
print "Content-Type: text/html^/"
4. Do the script in a REBOL console -- this will ensure that it doesn't have
syntax errors. If it doesn't you should see your HTML printed in the console
window. But, if you've put a Quit in, you may not see the console window --
it'll close darned fast -- so the trick is:
a. Copy the script to the clipboard (ctrl+c)
b. Open a REBOL console and type the command
quit: :halt
(note the two colons)
c. Do this command:
do read clipboard://
d. Check the HTML printed has a proper ending -- (last thing printed should
be /html>
5. Does IIS have any decent logs? If so, there may be some more info there.
Good luck!
Sunanda
[5/13] from: castellani-cpt:itautec-philco at: 28-Aug-2003 18:02
RES: Re: Sloooooooow Rebol
Hi Sunanda, Thanks for help
The script is:
REBOL [Title: "CGI Script"]
print "content-type: text/html^/"
print [
<HTML><BODY>
"Now is:" now
<PRE>
mold system/options/cgi
</PRE>
</BODY></HTML>
]
It?s ok, ok ?
-----Mensagem original-----
De: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Em nome de
[SunandaDH--aol--com]
Enviada em: quinta-feira, 28 de agosto de 2003 17:37
Para: [rebol-list--rebol--com]
Assunto: [REBOL] Re: Sloooooooow Rebol
Marcelo
> Well, I think I forgot to configure something (I configure my PC using it:
> http://www.jansfreeware.com/articles/pwsrebol.html). Someone can help me
???
> I've writing some simple Rebol scripts to run in command line and I love
it.
Welcome to REBOL! I've been doing a lot of REBOL and CGI work lately. They
are a good combination.
I've not used REBOL with IIS, but in my experience, this sort of webserver
timeout problem is caused by a malformed script. Try the following, in no
particular order of importance:
1. make sure your *.r association is to a version of Core, not View (some
people have reported that CGI and View don't mix).
2. End your script with a Quit rather than just dropping off the end.
3. Make absolutely sure the first thing printed is
print "Content-Type: text/html^/"
4. Do the script in a REBOL console -- this will ensure that it doesn't have
syntax errors. If it doesn't you should see your HTML printed in the console
window. But, if you've put a Quit in, you may not see the console window --
it'll close darned fast -- so the trick is:
a. Copy the script to the clipboard (ctrl+c)
b. Open a REBOL console and type the command
quit: :halt
(note the two colons)
c. Do this command:
do read clipboard://
d. Check the HTML printed has a proper ending -- (last thing printed should
be /html>
5. Does IIS have any decent logs? If so, there may be some more info there.
Good luck!
Sunanda
[6/13] from: andrew:martin:colenso:school at: 29-Aug-2003 11:09
Marcelo wrote:
The script is:
REBOL [Title: "CGI Script"]
print "content-type: text/html^/"
print [
<HTML><BODY>
"Now is:" now
<PRE>
mold system/options/cgi
</PRE>
</BODY></HTML>
]
It?s ok, ok ?
There's no problem there. It's OK!
On our IIS at Colenso, I put my Rebol scripts in the scripts/
subdirectory, not the wwwroot/ directory. For my Wiki.r script, the URL
to access it becomes like:
http://colenso.net/scripts/Wiki.r?AJM
(Note that that address won't work for people on the internet, because
it's our internal network.)
I think the problem that Marcelo is having is that Rebol/View hasn't
been installed on the server. Rebol/View is trying to display it's
startup VID screen and waiting for input from the user. This behaviour
over-rides being called as a CGI program until Rebol/View is installed.
So the solution seems obvious. Just run Rebol/View on the server, and go
through the install process.
I hope that helps!
Andrew J Martin
Attendance Officer &
Information Systems Trouble Shooter
Colenso High School
Arnold Street, Napier.
Tel: 64-6-8310180 ext 826
Fax: 64-6-8336759
http://colenso.net/scripts/Wiki.r?AJM
http://www.colenso.school.nz/
[7/13] from: andrew::martin::colenso::school::nz at: 29-Aug-2003 11:18
Earlier I wrote:
> There's no problem there. It's OK!
And here's the result of putting Marcello's script in our IIS "scripts/"
directory and browsing to it with my MS IE browser:
<HTML> <BODY> Now is: 29-Aug-2003/11:16:04+12:00 <PRE>
make object! [
server-software: "Microsoft-IIS/5.0"
server-name: "colenso.net"
gateway-interface: "CGI/1.1"
server-protocol: "HTTP/1.1"
server-port: "80"
request-method: "GET"
path-info: "/scripts/Marcelo.r"
path-translated: "c:\inetpub\scripts\Marcelo.r"
script-name: "/scripts/Marcelo.r"
query-string: none
remote-host: "192.168.1.88"
remote-addr: "192.168.1.88"
auth-type: "Negotiate"
remote-user: "COLENSO\andrew.martin"
remote-ident: none
Content-Type: none
content-length: "0"
other-headers: ["HTTP_ACCEPT" {image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*} "HTTP_ACCEPT_LANGUAGE"
{en-nz,en;q=0.8,en-au;q=0.7,en-gb;q=0.5,en-ca;q=0.3,en-us;q=0.2}
HTTP_CONNECTION
"Keep-Alive" "HTTP_HOST" "colenso.net"
HTTP_USER_AGENT
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
HTTP_ACCEPT_ENCODING
"gzip, deflate"]
] </PRE> </BODY> </HTML>
Andrew J Martin
Attendance Officer &
Information Systems Trouble Shooter
Colenso High School
Arnold Street, Napier.
Tel: 64-6-8310180 ext 826
Fax: 64-6-8336759
http://colenso.net/scripts/Wiki.r?AJM
http://www.colenso.school.nz/
[8/13] from: SunandaDH:aol at: 29-Aug-2003 3:47
Re: Sloooooooow Rebol
Marcelo:
> Hi Sunanda, Thanks for help
No worries, I've struggled with exactly the same sort of issues in trying to
get Apache to work.
Other things to look at are:
1. Read the Core doc for IIS set up:
http://www.rebol.com/docs/core23/rebolcore-13.html
2. Line endings. Are you saving in a text editor? If you are using something
like MS Word to save as ASCII, you don't get the right combination of linefeed
and carriage-returns that some webservers need.
My current working solution is to use the xitami webserver. It's just a 700K
download from www.xitami.com.
If you use it, you will need a shebang as the first line of each script.
That's a path to the rebol interpreter. Your script would look something like
this:
#!c:\rebol\core\rebol.exe -cs
REBOL [Title: "CGI Script"]
print "content-type: text/html^/"
print [
"Now is:" now
mold system/options/cgi
]
(I'm not dissing Apache -- I got it to work in the end, and it is much more
powerful that Xitami. But Xitami meets my fairly simple needs for local-machine
CGI testing),
Sunanda.
[9/13] from: castellani-cpt:itautec-philco at: 29-Aug-2003 8:40
RES: Re: Sloooooooow Rebol
Hi Sunanda, thanks again
Andrew help me to put my .r files in the correct directory... it's working
now, very fast, very good.... Rebol is amazing... until today I use PERL and
Python, and these languages are very powerfull but nos very productive...
REBOL is more productive, I more with lower code...
I'm using IIS and PWS in Windows 2000 Professional, and Rebol/CORE.... in my
home I use Apache, but not configure Rebol yet.... Maybe in this saturday I
do it... today is very cold in Sao Paulo - Brazil, if tomorow is cold too I
will stay in home and do it... otherwise I'll go to rock and roll...
-----Mensagem original-----
De: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Em nome de
[SunandaDH--aol--com]
Enviada em: sexta-feira, 29 de agosto de 2003 04:47
Para: [rebol-list--rebol--com]
Assunto: [REBOL] Re: Sloooooooow Rebol
Marcelo:
> Hi Sunanda, Thanks for help
No worries, I've struggled with exactly the same sort of issues in trying to
get Apache to work.
Other things to look at are:
1. Read the Core doc for IIS set up:
http://www.rebol.com/docs/core23/rebolcore-13.html
2. Line endings. Are you saving in a text editor? If you are using something
like MS Word to save as ASCII, you don't get the right combination of
linefeed
and carriage-returns that some webservers need.
My current working solution is to use the xitami webserver. It's just a 700K
download from www.xitami.com.
If you use it, you will need a shebang as the first line of each script.
That's a path to the rebol interpreter. Your script would look something
like
this:
#!c:\rebol\core\rebol.exe -cs
REBOL [Title: "CGI Script"]
print "content-type: text/html^/"
print [
"Now is:" now
mold system/options/cgi
]
(I'm not dissing Apache -- I got it to work in the end, and it is much more
powerful that Xitami. But Xitami meets my fairly simple needs for
local-machine
CGI testing),
Sunanda.
[10/13] from: castellani-cpt:itautec-philco at: 29-Aug-2003 8:29
RES: Re: RES: Re: Sloooooooow Rebol
Hi Andrew, thanks for help
I put the script in "scripts" directory and it's run.
-----Mensagem original-----
De: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Em nome de
Andrew Martin
Enviada em: quinta-feira, 28 de agosto de 2003 20:09
Para: [rebol-list--rebol--com]
Assunto: [REBOL] Re: RES: Re: Sloooooooow Rebol
Marcelo wrote:
The script is:
REBOL [Title: "CGI Script"]
print "content-type: text/html^/"
print [
<HTML><BODY>
"Now is:" now
<PRE>
mold system/options/cgi
</PRE>
</BODY></HTML>
]
It?s ok, ok ?
There's no problem there. It's OK!
On our IIS at Colenso, I put my Rebol scripts in the scripts/
subdirectory, not the wwwroot/ directory. For my Wiki.r script, the URL
to access it becomes like:
http://colenso.net/scripts/Wiki.r?AJM
(Note that that address won't work for people on the internet, because
it's our internal network.)
I think the problem that Marcelo is having is that Rebol/View hasn't
been installed on the server. Rebol/View is trying to display it's
startup VID screen and waiting for input from the user. This behaviour
over-rides being called as a CGI program until Rebol/View is installed.
So the solution seems obvious. Just run Rebol/View on the server, and go
through the install process.
I hope that helps!
Andrew J Martin
Attendance Officer &
Information Systems Trouble Shooter
Colenso High School
Arnold Street, Napier.
Tel: 64-6-8310180 ext 826
Fax: 64-6-8336759
http://colenso.net/scripts/Wiki.r?AJM
http://www.colenso.school.nz/
[11/13] from: kevin::wise::mtifwb::com at: 29-Aug-2003 8:54
Marcelo I am having a similar problem but I am getting "page can not be
displayed". Can you give me an idea what you changed to get this to work.
I have done this type of association before in IIS and not had a problem.
[12/13] from: castellani-cpt::itautec-philco::com::br at: 29-Aug-2003 13:18
RES: Re: RES: Re: RES: Re: Sloooooooow Rebol
Hi Kevin
I just do i http://www.jansfreeware.com/articles/pwsrebol.html and put my
files in scripts directory.
Only a difference, I didn't write the Rebol executable path in registry, I
go to my site and configure the Rebol executable path in "base folder",
settings
, ISAPI. Just click ADD, in the executable field put
C:\Rebol\rebol031.exe -cs %s %s
, in the extension put ".r" and click ok..
-----Mensagem original-----
De: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Em nome de
Kevin Wise
Enviada em: sexta-feira, 29 de agosto de 2003 10:54
Para: ['rebol-list--rebol--com']
Assunto: [REBOL] Re: RES: Re: RES: Re: Sloooooooow Rebol
Marcelo I am having a similar problem but I am getting "page can not be
displayed". Can you give me an idea what you changed to get this to work.
I have done this type of association before in IIS and not had a problem.
[13/13] from: kevin:wise:mtifwb at: 29-Aug-2003 13:12
Got it! Thanks.