Trying to use our interpreter: thinBasic

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
erosolmi
-


Joined: 26 Mar 2005
Posts: 8
Location: Milan, Italy

PostPosted: Thu Oct 13, 2005 2:17 pm    Post subject: Trying to use our interpreter: thinBasic Reply with quote

We have recently release a new script engine interpreter called thinBasic.
thinBasic started as an automation script engine but we have created a modular structure so now there are many modules working on many aspects. One of these modules is a CGI module that will allow to use thinBasic as CGI engine, more or less like PHP cgi version.

Some time ago we tested thinBasic with Abyss X1 version 2.0.0 and all was working fine. We have recently installed Abyss X1 version 2.0.6 and all script simply stopped working. In "error.log" we get "Broken pipe" error for every script whatever we do. Interpreter is executed, script name is passed fine, "Content-type" is there, all seems ok for what we can understand at the moment.

My question: is there a way to get some more detailed information on what "Broken pipe" is? I imagine is something to do with standard output of script engine but how and what to check?

thinBasic is working fine under IIS5 and IIS6 and it was working fine also under Abyss 2.0.0. So, what has changed on this side?

Thanks a lot
Eros

www.thinbasic.com

PS: sorry for double posting but I miss this forum.
Back to top View user's profile Send private message Send e-mail Visit poster's website
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Thu Oct 13, 2005 4:12 pm    Post subject: Reply with quote

http://www.aprelium.com/forum/viewtopic.php?p=46450#46450
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
erosolmi
-


Joined: 26 Mar 2005
Posts: 8
Location: Milan, Italy

PostPosted: Thu Oct 13, 2005 4:35 pm    Post subject: Reply with quote

Link is broken.
Back to top View user's profile Send private message Send e-mail Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Oct 13, 2005 4:56 pm    Post subject: Re: Trying to use our interpreter: thinBasic Reply with quote

erosolmi,

"Broken Pipe" means that Abyss Web Server has not received any byte from the interpreter and that the communication pipe between them was closed at a very early stage.

In order to help us understand the problem, can you please post here the exact Interpreter configuration you've set and the test script you've used.

(Sending a copy of your reply to support@aprelium.com can speed up things. :-) )
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
erosolmi
-


Joined: 26 Mar 2005
Posts: 8
Location: Milan, Italy

PostPosted: Thu Oct 13, 2005 7:38 pm    Post subject: Reply with quote

Thanks a lot for your reply.
I will triple check again all before wasting your time. Than I will give you back. We are working on improvements on our CGI module and we would like to have to option to use it under Abyss.

Anyhow, posting here is not possible because you have to install thinBasic first in order to test. Installation is about 1.6 Mb.

Anyhow, documentation can be found at http://www.thinbasic.com/index.php?module=ContentExpress&file=index&func=display&ceid=6&meid=25,
while specific CGI module info can be found at http://www.thinbasic.com/public/products/thinBasic/help/html/cgi.htm

Laste released version is 1.0.5.0.
Version 1.0.6.0 is under development.

Thanks a lot
Eros
Back to top View user's profile Send private message Send e-mail Visit poster's website
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1332

PostPosted: Thu Oct 13, 2005 7:56 pm    Post subject: Reply with quote

erosolmi wrote:
Anyhow, posting here is not possible because you have to install thinBasic first in order to test. Installation is about 1.6 Mb.


All we need to know are the parameters you have used when adding ThinBasic support in Abyss Web Server. We aren't asking for more.

erosolmi wrote:
Anyhow, documentation can be found at http://www.thinbasic.com/index.php?module=ContentExpress&file=index&func=display&ceid=6&meid=25,
while specific CGI module info can be found at http://www.thinbasic.com/public/products/thinBasic/help/html/cgi.htm


Can you post here a small test script so that we can use it immediately for testing.

By the way, "Broken pipe" can occur when you use a GUI application instead of a console application as your interpreter. Are you sure you've declared thinBasicc.exe as the interpreter?
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
erosolmi
-


Joined: 26 Mar 2005
Posts: 8
Location: Milan, Italy

PostPosted: Thu Oct 13, 2005 8:40 pm    Post subject: Reply with quote

Yes,

we have 2 program version: GUI, thinBasic.exe and Console/CGI, thinBasicC.exe. I'm using console/cgi one. Extensions are tBasic and tbasicc. Type is Standard.

Executing script from command line with something like the following is working fine:
c:\thinbasic\thinbasicc.exe test.tbasic > test.txt
and produced a stdout in test.txt

Script content is as simple as:
Code:
uses "CGI"    '---this instruct to load CGI module
Echo "<HTML><HEAD></head><BODY>" & _
     "OK" & _
     "</BODY></HTML>"

sleep 2000    '---Just sleep 2 seconds


I've included a "sleep 2000" that will pause script execution for 2 seconds. With this pause I can see from process list that interpreter is loaded and browser take 2 seconds before giving error 500 so it seems script is executed.

But again, thanks for your reply. I want to check again our CGI module to see how we handle stdout and how script name is determined by environment variable. I think to have found a bug on this so it is not CGI compliant. Than I will give you back and possible publish a new thinbasic version.

Eros
Back to top View user's profile Send private message Send e-mail Visit poster's website
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1332

PostPosted: Thu Oct 13, 2005 8:56 pm    Post subject: Reply with quote

erosolmi wrote:

Script content is as simple as:
Code:
uses "CGI"    '---this instruct to load CGI module
Echo "<HTML><HEAD></head><BODY>" & _
     "OK" & _
     "</BODY></HTML>"

sleep 2000    '---Just sleep 2 seconds



The script you've quoted does not output the CGI headers as required by the specification.

We were able to run the following CGI script after declaring thinBasicC.exe as the interpreter associated with extension .tbasicc:

Code:

Uses "CGI"

Echo "Content-Type: text/html" & $CRLF & $CRLF
Echo "Hello"


By the way, we've found a little bug with the thinbasicc commad line: if we execute thinbasicc filename.tbasicc and if filename.tbasicc does not exist, there is no error message. ThinBasic exits silently.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
erosolmi
-


Joined: 26 Mar 2005
Posts: 8
Location: Milan, Italy

PostPosted: Thu Oct 13, 2005 9:06 pm    Post subject: Reply with quote

As I said, I would have to triple check all :(
In the version we have under development it has an auto "Content-type" but I forgot to remove it. So, excuse me.

Regarding not reporting error in case script does not exists, it is by design. thinBasic started as an automation engine for servers tasks and user login scripts. At that time we didn't want many errors around. Maybe we will change it. All is undergoing continuous development.

Thanks a lot
Eros
Back to top View user's profile Send private message Send e-mail Visit poster's website
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1332

PostPosted: Thu Oct 13, 2005 11:06 pm    Post subject: Reply with quote

erosolmi wrote:
Regarding not reporting error in case script does not exists, it is by design. thinBasic started as an automation engine for servers tasks and user login scripts. At that time we didn't want many errors around. Maybe we will change it. All is undergoing continuous development.

We still think it would be nice to report such an error. Here is how we discovered it: we used the command line to test the script. So after 15 minutes checking everything and wondering why there was no output, someone discovered that the file name was missing a character. This wasn't easy to see and an error message would have saved us a lot of time (and would save your users a lot of frustration with typing errors).

By the way, can you please keep us updated about the progress of ThinBasic. The language is very interesting and many Abyss Web Server users will certainly find it a useful alternative to PHP, ASP, and other scripting languages.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
erosolmi
-


Joined: 26 Mar 2005
Posts: 8
Location: Milan, Italy

PostPosted: Thu Oct 13, 2005 11:18 pm    Post subject: Reply with quote

Well, I think we will reconsider this based on your suggestion. Thanks.

Regarding thinBasic, thanks a lot for the consideration. We have worked hard on it during the last 2 years. A lot of new features are ready to comes out. Usually we try to make a new update every 2/3 weeks or immediate in case of important bugs.

CGI module is new and not well documented but we will try to give a stable modules by the next 2 versions. When ODBC modules will be complete I think we can start to make interesting dynamic web pages using thinBasic.

Can I add a configuration page for Abyss in our help file?

Thanks a lot for your time.
_________________
Eros Olmi
www.thinbasic.com
Back to top View user's profile Send private message Send e-mail Visit poster's website
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1332

PostPosted: Thu Oct 13, 2005 11:25 pm    Post subject: Reply with quote

erosolmi wrote:
CGI module is new and not well documented but we will try to give a stable modules by the next 2 versions. When ODBC modules will be complete I think we can start to make interesting dynamic web pages using thinBasic.

Can I add a configuration page for Abyss in our help file?

Thanks a lot for your time.


Sure, you can. :-) When it will be officially released, we'll add an "Adding ThinBasic support" page.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group