<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>websh-user@tcl.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/tcl-websh-user/</id>
<updated>2009-12-09T16:31:06Z</updated>
<entry>
<title>Re: Question about interpreters</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200910.mbox/%3c20091026155007.GI20797@netcetera.ch%3e"/>
<id>urn:uuid:%3c20091026155007-GI20797@netcetera-ch%3e</id>
<updated>2009-10-26T15:50:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; I have the following problem(s)

[...]

&gt; I don't know what the heck is wrong, or how to use the interpreters
&gt; or why they're needed, where they're needed .. how to combine them
&gt; cause it seems not to display my pages correctly. I read the quick
&gt; reference before but it took me lots of hours to figure out some
&gt; things. Could it be because I'm on vista? Even sessions seemed to
&gt; work weird, and without a proper interpreter I felt lost so I
&gt; stopped using Websh.

I don't see anything that's obviously wrong in your code. (Well, there
isn't much code ;-)

Does the sample installation w/o changing anything (except maybe
settning webshroot correctly in websh.conf) work? What is the
output of using the sample as-is? Any logs in the Apache error log?

The poin twith the interpreters is: with 

proc web::interpmap {file} {
     # return interp class for request to file
     return $file
}

you define which interpreter(s) handle which requests. The sample uses
2 defined interpreter classes (i.e. interpreterr that run the same
code for same set of requests) and all *.ws3 requests are handled by
their own class):

  otherhandler.ws3: running requests to any file called other.html

  htmlhandler.ws3: running requests to any *.html file (except the above)

  *.ws3: each *.ws3 has it's own interpreter, which just runs the file itself

So the interpreter thing lets you decide which requests should be
handled by which code.

proc web::interpmap {file} {
     return myCode.tcl
}

Would instead run every request through the same code no matter which
request is sent to mod_websh from the server (configured with the
AddHandler directive...)

hth
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Question about interpreters</title>
<author><name>Lost One &lt;the.lostone@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200910.mbox/%3c58297.89710.qm@web57504.mail.re1.yahoo.com%3e"/>
<id>urn:uuid:%3c58297-89710-qm@web57504-mail-re1-yahoo-com%3e</id>
<updated>2009-10-24T17:26:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

Ok I finally compiled everything, I reinstalled Tcl so that .tcl was put in the extension
path.
Then I started experimenting with Websh again, I'm sorry if my questions seem to be kinda
stupid but the last time I ignored interpreters I got stuck.

I have the following problem(s)
When I try to visualize the configuration.html document it doesn't display full. I tried to
change the code in htmlhandler.ws3 to this

 web::initializer {
       web::config putxmarkup tag
}

restart the server but it ends up only working for only ONE time, then no more. Apache seems
to constantly crash and get back up on it's own. I remember having the same problems with
the older versions too.
If i change the following:

web::interpclasscfg "$webshroot/conf/htmlhandler.ws3" maxrequests 1

or to another number then my  Vista keeps asking me either to close apache or to "find a solution"
for the program, Apache starts automatically up so it's kinda annoying.. 

I don't know what the heck is wrong, or how to use the interpreters or why they're needed,
where they're needed .. how to combine them cause it seems not to display my pages correctly.
I read the quick reference before but it took me lots of hours to figure out some things.
Could it be because I'm on vista? Even sessions seemed to work weird, and without a proper
interpreter I felt lost so I stopped using Websh.

Regards,
Andrei



      

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Compile problems</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200910.mbox/%3c20091023133611.GJ26@netcetera.ch%3e"/>
<id>urn:uuid:%3c20091023133611-GJ26@netcetera-ch%3e</id>
<updated>2009-10-23T13:36:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

&gt;         cl /D"WIN32" /D"VERSION=\"3.6.0b5\"" /D"_MBCS" /W3 /EHsc /O2 /Ob1 /DTHREAD_SAFE=1
-I"D:/Tcl/include" -I"D:/Tcl/Apache/include" -UUSE_TCL_STUBS -c ../generic/interpool.c /Fointerpool.obj

[...]

&gt; interpool.c
&gt; d:\tcl\websh-3.6.0b5\src\generic\mod_websh.h(23) : fatal error C1083: Cannot open include
file: 'httpd.h': No such file or directory

Obviously the compiler doesn't find httpd.h. Try to locate your
httpd.h file and then configure your Makefile to point to the *parent*
dir of the include directory.

For me the following worked w/o any tweak:

- Install Apache 2.2.14 to 
  "C:\Program Files\Apache Software Foundation\Apache2.2.14\"
  (make sure to also install the header files)

- Install the latest ActiveTcl to 
  "C:\Program Files\ActiveTcl\8.6.0\"

- Unpack websh-3.6.0b5, cd to src\win and run

  nmake TCL_PREFIX="C:/Program Files/ActiveTcl/8.6.0" TCL_VERSION=86 HTTPD_PREFIX="C:/Program
Files/Apache Software Foundation/Apache2.2.14" clean all test apachetest

-&gt; That's it

hth
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Compile problems</title>
<author><name>Lost One &lt;the.lostone@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200910.mbox/%3c211464.48988.qm@web57504.mail.re1.yahoo.com%3e"/>
<id>urn:uuid:%3c211464-48988-qm@web57504-mail-re1-yahoo-com%3e</id>
<updated>2009-10-23T09:34:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello
I have (successfully) compiled Websh before (with a lot of searching and work..) but now it
seems that i just can't compile the newer version. I'm using Tcl 8.6b1 and apache 2.2.14.
I tried using the compiled apache and also the uncompiled one but it just won't work.I always
get errors, sometimes the arp.h is missing, other times the libhttpd.lib is missing although
the libhttpd.dll exists.
Last time I tried to do everything i got this error:Microsoft (R) Program Maintenance Utility
Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /D"WIN32" /D"VERSION=\"3.6.0b5\"" /D"_MBCS" /W3 /EHsc /O2 /Ob1 /DTHRE
AD_SAFE=1 -I"D:/Tcl/include" -I"D:/Tcl/Apache/include" -UUSE_TCL_STUBS -c ../gen
eric/interpool.c /Fointerpool.obj
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

interpool.c
d:\tcl\websh-3.6.0b5\src\generic\mod_websh.h(23) : fatal error C1083: Cannot ope
n include file: 'httpd.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.EXE"' : return code '0x2'
Stop.

Could you please be able to tell me how you did it precisely, cause i can't quite remember
how i made it work the last time. Do I have to compile Apache separated or do I need the TCL
source?
Thanks in advance.




      

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Regarding Google Analytics issue</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200909.mbox/%3c20090929115521.GC14893@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090929115521-GC14893@netcetera-ch%3e</id>
<updated>2009-09-29T11:55:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Manu

&gt; I just got stuck in the same issue as you with the google analytics.
&gt; 
&gt; The cookie it generates have the value that consists of '=' sign,
&gt; which is not parsed properly, and because of the same, our secured
&gt; subdomain site doesn't work, and as soon as I delete the cookie, it
&gt; starts working.

Are you talking about Websh? If so, please update to the latest
version (3.6.0b5), where this issue is solved.

If that is not possible for some reason, you can overwrite the
_getCookie proc of a cookiecontext (where yourContext is changed to
the name of your context) as follows:

web::cookiecontext yourContext
proc yourContext::_getCookie {id} {
    ::set cookie [web::request HTTP_COOKIE]
    foreach v [split $cookie ";"] {
        # get key and value: note: some cookies (e.g.. Google analytics)
        # also use = in the value, so a simple split with =; does 
        # not always work...
        set key [string trim [lindex [split $v =] 0]]
        set value [string trim [join [lrange [split $v =] 1 end] =]]
        lappend kvlist $key $value
    }
    # search for $datatag
    foreach {key value} $kvlist {
        if {[string compare $key $id] == 0} {
            return $value
        }
    }
    error "no matching cookie found"
}


&gt; Could you kindly tell me what did you do to solve this issue.

And if you don't talk about Websh: make sure whatever pareses your
cookies properly splits at "," characters and then just takes the
everything before the first "=" as cookie name, the rest as value,
even if it contains "0" aswell...

hth
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ANNOUNCE: Websh3.6.0b5</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200909.mbox/%3c20090927193625.GE6505@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090927193625-GE6505@netcetera-ch%3e</id>
<updated>2009-09-27T19:36:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Geroge

&gt; Can websh be used to create an HTTP REST service in tcl?

Sure. But then, I guess you can create a REST service with just about
every technology.

Websh at least provides an easy interface to handle PATH_INFO and all
parameters or form vars. That's abot what you need to create a REST
service.

&gt; Ideally I want to have a thread pool (the one in the thread package)  
&gt; with N threads already initialised. Can websh receive a request, place a  
&gt; task in the thread pool and return the result?

Well, I don't really know the thread package. Websh already provides
an interpreter pool (when run as mod_websh) that you can use to handle
mutliple requests per interpreter.

It should not be a problem to use a thread package, as Websh is "just"
an ordinary Tcl interpreter anyway. The only thing to onsider is
making sure that you understand what your apache process model is and
what you expect Websh to do, so that you scale where you actually plan
it.

That doesn't help much, I guess, but your question was pretty
vage... I still hth ;-)

Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>ANNOUNCE: Websh3.6.0b5</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200909.mbox/%3c20090924074218.GB18528@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090924074218-GB18528@netcetera-ch%3e</id>
<updated>2009-09-24T07:42:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The Websh maintenance team is proud to announce Websh 3.6.0b5.

Websh is a Tcl extension to support web application development and
provides an Apache module for Apache 1.3, 2.0, and 2.2 servers. It
compiles against Tcl 8.3 and later, including Tcl 8.6.

Get the release from

    http://tcl.apache.org/websh/download/

More info about Websh can be found on the project home page

    http://tcl.apache.org/websh

Websh is known to compile under
    Solaris (e.g. Solaris 8 to 10)
    Linux (e.g. RedHat 6 and 8, SuSe 9.1, CentOS 4.3)
    Windows XP and Vista(Visual Studion 6.0 nmake)
    OS-X Tiger

Websh3.6.0b5 is considered the most stable version of Websh so far,
but it is still beta, as there are some issues regarding stability on
Windows. (See CHANGES below)

For a summary of Changes since Websh 3.5.0 refer to

    http://svn.apache.org/repos/asf/tcl/websh/tags/3.6.0b5/CHANGES

A detailed lst of changes can be found in

    http://svn.apache.org/repos/asf/tcl/websh/tags/3.6.0b5/src/ChangeLog

Any feedback welcome. Official mailing lists for questions:

    websh-user@tcl.apache.org (user questions/discussions)
    websh-dev@tcl.apache.org  (development questions/discussion)

Ronnie Brunner
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: websh crash - possible cause</title>
<author><name>&quot;Ashok P. Nadkarni&quot; &lt;apnadkarni@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200906.mbox/%3c4A4068CE.2080308@yahoo.com%3e"/>
<id>urn:uuid:%3c4A4068CE-2080308@yahoo-com%3e</id>
<updated>2009-06-23T05:31:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
After fixing the logdest/close problem, the rest of the tests from 'make 
test' ran fine. I have not gotten around to running apachetest. It 
failed when I tried it because Ubuntu Apache does not have its 
configuration layout in the format expected by the test suite. I need to 
uninstall it and install a standard Apache distribution first and retry. 
Maybe today or tomorrow.

/Ashok

Ronnie Brunner wrote:
&gt;&gt; It appears as though websh will crash if "logdest delete" is called on  
&gt;&gt; log destination that is a channel after closing the channel via Tcl's  
&gt;&gt; close command. In particular, test log-2.6 has the following sequence:
&gt;&gt;    close $fh
&gt;&gt;    web::logdest delete
&gt;&gt;     
&gt;
&gt; Yes, web::logdest has a problem if the channel is closed. I'll be
&gt; looking at this in the next few days. Thanks for finding that one.
&gt;
&gt; In the mean time: if you just put the [close $fh] statement after the
&gt; [web::logdest delete] statement in this test: does your setup still
&gt; crash? Do you get other errors?
&gt;
&gt;   
&gt;&gt; Please verify if that might the problem. Of course, that may or may not  
&gt;&gt; be the cause of the crashes you are seeing.
&gt;&gt;     
&gt;
&gt; It is not the cause for my problems.
&gt;
&gt;   
&gt;&gt; Funnily enough on XP and Tcl 8.6 the test suite runs fine. I suppose it  
&gt;&gt; depends when that memory gets reused.
&gt;&gt;     
&gt;
&gt; Yeah, probably. (I never had this test fail on my RedHat boxes either).
&gt;
&gt; Ronnie
&gt;   

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: websh crash - possible cause</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200906.mbox/%3c20090622174330.GN11447@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090622174330-GN11447@netcetera-ch%3e</id>
<updated>2009-06-22T17:43:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; It appears as though websh will crash if "logdest delete" is called on  
&gt; log destination that is a channel after closing the channel via Tcl's  
&gt; close command. In particular, test log-2.6 has the following sequence:
&gt;    close $fh
&gt;    web::logdest delete

Yes, web::logdest has a problem if the channel is closed. I'll be
looking at this in the next few days. Thanks for finding that one.

In the mean time: if you just put the [close $fh] statement after the
[web::logdest delete] statement in this test: does your setup still
crash? Do you get other errors?

&gt; Please verify if that might the problem. Of course, that may or may not  
&gt; be the cause of the crashes you are seeing.

It is not the cause for my problems.

&gt; Funnily enough on XP and Tcl 8.6 the test suite runs fine. I suppose it  
&gt; depends when that memory gets reused.

Yeah, probably. (I never had this test fail on my RedHat boxes either).

Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>websh crashes - possible cause</title>
<author><name>&quot;Ashok P. Nadkarni&quot; &lt;apnmbx-public@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200906.mbox/%3c4A3CC967.1030909@yahoo.com%3e"/>
<id>urn:uuid:%3c4A3CC967-1030909@yahoo-com%3e</id>
<updated>2009-06-20T11:35:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
(apologies if duplicate - my previous email did not show up on the list)

Ronnie,

Regarding the "make test" crashes on Ubuntu -

It appears as though websh will crash if "logdest delete" is called on 
log destination that is a channel after closing the channel via Tcl's 
close command. In particular, test log-2.6 has the following sequence:
   close $fh
   web::logdest delete
This results eventually in a call to Tcl_Flush from 
destroyLogToChannelData with a channel pointer that is no longer valid. 
The end-result is likely to be random crashes as Tcl_Flush does not seem 
to do any validation.

Please verify if that might the problem. Of course, that may or may not 
be the cause of the crashes you are seeing.

Funnily enough on XP and Tcl 8.6 the test suite runs fine. I suppose it 
depends when that memory gets reused.

Regards

/Ashok

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>websh crash - possible cause</title>
<author><name>&quot;Ashok P. Nadkarni&quot; &lt;apnadkarni@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200906.mbox/%3c4A3C9D82.1090903@yahoo.com%3e"/>
<id>urn:uuid:%3c4A3C9D82-1090903@yahoo-com%3e</id>
<updated>2009-06-20T08:27:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
It appears as though websh will crash if "logdest delete" is called on 
log destination that is a channel after closing the channel via Tcl's 
close command. In particular, test log-2.6 has the following sequence:
    close $fh
    web::logdest delete
This results eventually in a call to Tcl_Flush from 
destroyLogToChannelData with a channel pointer that is no longer valid. 
The end-result is likely to be random crashes as Tcl_Flush does not seem 
to do any validation.

Please verify if that might the problem. Of course, that may or may not 
be the cause of the crashes you are seeing.

Funnily enough on XP and Tcl 8.6 the test suite runs fine. I suppose it 
depends when that memory gets reused.

Regards

/Ashok

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: mod_websh DLL on Windows and other questions</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200906.mbox/%3c20090617074001.GB22545@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090617074001-GB22545@netcetera-ch%3e</id>
<updated>2009-06-17T07:40:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; In 3.6.0b4 (released version), copying the .so file to the modules  
&gt; directory was sufficient on Windows. In the current CVS head, the .dll  
&gt; also needs to be copied. The README specifically says the DLL is not  
&gt; needed to run the Apache module and should be fixed. Only a nit, but  
&gt; someone might spend a half-hour trying to figure out why Apache will not  
&gt; load the module (like I did).

Sorry for that one. I just committed a fix in the REAMDE.

&gt; Also, another small request - would it be possible to change the build  
&gt; or patch number in CVS to distinguish from the released 3.60.b4 ?

Yeah, I guess it's about time to release at least 3.6.0b5. Unfortunately, 
I was reproved by Apache for releasing anything without following the
proper ASF rules. It's about time I find out how to do it properly, I
guess ;-) (Just using some "-SNAPSHOT" version does not really solve
the problem of knowing what code is in use, it just makes sure that
you don't mix up the released version with any other build... I'll try
to think of something.)

&gt; Finally two questions, on both Windows and *ix, does mod_websh need to  
&gt; be built differently based on the Apache process model (MPM etc.) ? How  
&gt; about whether the Tcl binaries are built threaded or not ?

No, mod_websh does not care about MPMs or threads in Tcl (i.e. you
don't have to change anything when building). Websh itself is thread
safe. But it certainly makes difference when it's run in different
environments:
- If Apache runs in any threaded MPM, Tcl Must be threaded as well.
- CGI case is independent of the model (for obvious reasonsn ;-)
- If your Websh app uses threads: Tcl must be threaded too, regardless
  of the MPM Apache runs
- Interpreter handling is different when running in threaded
  vs. non-threaded MPMs: For every (Apache) process there is an
  interpreter pool. While requests can share interpreters within a
  process, they cannot do so across processes. (For example this needs
  to be considered when you try to create sessions kept in memory of
  the Apache process, which only works properly if you run Apache in a
  single process mode.)

Hope that helps
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>mod_websh DLL on Windows and other questions</title>
<author><name>&quot;Ashok P. Nadkarni&quot; &lt;apnadkarni@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200906.mbox/%3c4A385C96.8020907@yahoo.com%3e"/>
<id>urn:uuid:%3c4A385C96-8020907@yahoo-com%3e</id>
<updated>2009-06-17T03:01:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
In 3.6.0b4 (released version), copying the .so file to the modules 
directory was sufficient on Windows. In the current CVS head, the .dll 
also needs to be copied. The README specifically says the DLL is not 
needed to run the Apache module and should be fixed. Only a nit, but 
someone might spend a half-hour trying to figure out why Apache will not 
load the module (like I did).

Also, another small request - would it be possible to change the build 
or patch number in CVS to distinguish from the released 3.60.b4 ?

Finally two questions, on both Windows and *ix, does mod_websh need to 
be built differently based on the Apache process model (MPM etc.) ? How 
about whether the Tcl binaries are built threaded or not ?

Thanks

/Ashok

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Incorrect out put from cmdurl when url has an explicit port</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200905.mbox/%3c20090522140823.GE23459@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090522140823-GE23459@netcetera-ch%3e</id>
<updated>2009-05-22T14:08:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; If I access a script using the URL  
&gt; http://localhost:8080/printrequest.wtf (I'm using wtf as the extension  
&gt; instead of ws3), then the command
&gt;
&gt; web::put [web::cmdurl command -urlformat {scheme host port scriptname  
&gt; pathinfo querystring}]
&gt;
&gt; outputs "http://localhost:8080:8080/printrequest.wtf?XDxJ7kkLRVB75Hb..."  
&gt; in the web page.

I commited a fix today. If you want to check it out: Get the latest
source from http://svn.apache.org/repos/asf/tcl/websh/trunk

hth
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: About Websh... Sessions and stuff..:)</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200905.mbox/%3c20090505190351.GB26987@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090505190351-GB26987@netcetera-ch%3e</id>
<updated>2009-05-05T19:03:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

&gt; Well, I tried out the stuff you said but the somehow the include
&gt; from the interpreter files doesn't work! Because I tried everything
&gt; and i still can't include my functions with it...:(

Are you sure your websh.conf is setup and configured in Apache
correctly? (And that you are not running CGI, but mod_websh)

Important steps to check:
- Is websh.conf actually read by Apache?
- Is the web::interpmap in websh.conf properly sourced?
- Is the referenced interpclass (the file name returned by
  web::interpmap) sourced correctly?
- Does the interpclass handle the actual script correctly?

If you could send a relevant code snipplet, I could try to find what's
wrong.

hth
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: About Websh... Sessions and stuff..:)</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200905.mbox/%3c20090503220801.GA23947@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090503220801-GA23947@netcetera-ch%3e</id>
<updated>2009-05-03T22:08:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; First of all I would like to congratulate you guys for your efforts WebSh.. it's a good
alternative.. BUT
&gt; It takes a lot of time to develop something serious.. You get lots of errors and have
to debug it like no other...

I guess that depends on how familiar you with it... We've done dome
pretty serious things and usually we get somewhere within a few
hours. But I'm certainly aware that there is some effort needed to get
into Websh.

&gt; The
&gt; web::dispatch thing is very good when you have 1 file.. But what do I
&gt; do when i've got 3 files and I need to communicate one with another?
&gt; Send data and stuff... Because I made a something with web::include...
&gt; and even altered the web::cmdurlcfg -scriptname ...
&gt; How can you use
&gt; the sessions so you ACTUALLY send it from one page(file) to another.. i
&gt; tried almost everything.. and nothing worked... 

The basic idea is that you have an interpreter class that contains all
common code so that you only put in a specific page what you actually
want to have there. In your setup, I'd expect auth.ws3 (and some stuff
to abstract html in the common code, while index.ws3 probably just
renders the index page. Sonething like:

index.ws3:

  if {[isAuthorized]} {
    page "Your title" {
      navigation "My Entry"
      title {Here it comes}
      p {Foo bar zoo}
    }
  }

While [isAuthorized] renders a login page if not authorized.

In such a setup you don't really need web::dispatch.

web::dispatch I'd setup to be used in something like admin.ws3, where
you have a couple of commands needing to be handled, so that admin.ws3
acts like an app itself.

&gt; Or can you
&gt; make it so that once you set a session you can get it back in every
&gt; file you access? (Just like php, not only through links)

Sure: as long as the session handling code is in the common code,
e.g. using a cookie context that refers to a session using a cookie,
so you don't have to put anything in the URL (though nothing keeps you
from doing this).

&gt; How
&gt; should I access those multiple files if i need them? How should I
&gt; rescript my script in order to work that way.. (clearly: i go to my
&gt; site, i see index.ws3 that includes auth.ws3  then i chose a link to
&gt; register, .. the form &amp; settings go on.. Registration is succesful,
&gt; i look in my database and it works, then i login succesfully.. and then
&gt; the problems come... sessions work only on the first page after the
&gt; login (map.ws3) but only a part there.. for the rest i get some weird
&gt; problems, sometimes a few procs don't work..)

This should be answered by the above explanation. Maybe the additional
hint helps:

in websh.conf, use

  proc web::interpmap {file} {
    return /path-to-your/wrapper
  }
  web::interpclasscfg /path-to-your/wrapper maxrequests 0

your wrapper looks like:

  # only source the code on the first request
  web::initializer {
    web::include /path-to-your/common-code
  }
  # process the actual web page
  web::include "[web::config script]"

and your common-code contains all your shared code used in the various
pages like index.ws3, register.ws3 etc.

hth

Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>About Websh... Sessions and stuff..:)</title>
<author><name>Lost One &lt;the.lostone@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200905.mbox/%3c37191.23300.qm@web57513.mail.re1.yahoo.com%3e"/>
<id>urn:uuid:%3c37191-23300-qm@web57513-mail-re1-yahoo-com%3e</id>
<updated>2009-05-03T20:58:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
First of all I would like to congratulate you guys for your efforts WebSh.. it's a good alternative..
BUT
It takes a lot of time to develop something serious.. You get lots of errors and have to debug
it like no other...
I spent a few hours compiling the mod_websh with xampp to find out later on that Apache provides
a easy binary of Apache...

The
past 3 days  I spent more than 20 hours in total to make a pathetic
Register, Login, Request Password and template file..... It wouldn't
have taken more than a few hours to make it in PHP! (well.. debugging +
sql testing..)
And I still have problems with it .. I'm thinking of
deleting it and every file i used for WebSh on my computer because of
the time I lost trying to figure out a few simple things ...
I read all the documentation, went through all the examples And i have a few
 questions(well,a lot more but i'll put some examples later`}

The
web::dispatch thing is very good when you have 1 file.. But what do I
do when i've got 3 files and I need to communicate one with another?
Send data and stuff... Because I made a something with web::include...
and even altered the web::cmdurlcfg -scriptname ...
How can you use
the sessions so you ACTUALLY send it from one page(file) to another.. i
tried almost everything.. and nothing worked... 

Or can you
make it so that once you set a session you can get it back in every
file you access? (Just like php, not only through links)

How
should I access those multiple files if i need them? How should I
rescript my script in order to work that way.. (clearly: i go to my
site, i see index.ws3 that includes auth.ws3  then i chose a link to
register, .. the form &amp; settings go on.. Registration is succesful,
i look in my database and it works, then i login succesfully.. and then
the problems come... sessions work only on the first page after the
login (map.ws3) but only a part there.. for the rest i get some weird
problems, sometimes a few procs don't work..)

Thanks in advance...

P.S. Any motives in WHY i should still use WebSh? Cause i already spent a lot of time in learning
it...

If you have some extra examples you guys could show me.. i would be very happy to learn out
of them..


Andrei



      

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cookie Based Sessions / Google Analytics</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200904.mbox/%3c20090416092057.GA4137@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090416092057-GA4137@netcetera-ch%3e</id>
<updated>2009-04-16T09:20:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

&gt; &gt; Does anyone have any idea why cookies with the leading underscores would  
&gt; &gt; do this?
&gt;
&gt; Can you provide a sample that doesn't work (a list of cookies that are
&gt; not read correctly)? Are you running mod_websh or websh in CGI? Which
&gt; version? 3.6.0b4 or latest from repository? (Although nothing
&gt; regarding cookies changed since 3.6.0b4 was changed.

Someone sent me an example and I could track down the problem: Google
Analytics sends cookies that contain '=' characters in the cookie
value. Websh assumed that '=' only separates cookie names from values
and tehrefore parsed the cookies not correctly in some cases.

Anyway: usually nobody want to know what the problem was, as long as
it's fixed now, therefore: it is fixed now :-)
Get the latest version from the repository to check it out if needed.

Regards
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Authentification</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200904.mbox/%3c20090410205446.GA1617@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090410205446-GA1617@netcetera-ch%3e</id>
<updated>2009-04-10T20:54:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi again

&gt; &gt; some time ago (Apr 2006) we had a discussion on how to add access to
&gt; &gt; user/password from the authentication of APACHE.
&gt; &gt; For this new installation I decided to use the newest version from
&gt; &gt; SVN, also because there were some bugfixes with response and APACHE
&gt; &gt; 2.2 reported. I sadly recognized, that the changes were not in
&gt; &gt; (yet). Any plans to do so?

I just committed some changes that expose Bais Auth user and password
to Websh. (Aren't religious holidays like "Karfreitag" a wonderful thing
for us developers with a daytime job? ;-)

The new paragraphs from the (committed, but unpublished) quick
reference (request_data_handling.html):

""Special case for handling Basic Auth:

web::request AUTH_USER
    returns the username provided by the user when Basic Auth is
    requested and Apache does not handle it (i.e. if Apache does not
    provide REMOTE_USER). 
web::request AUTH_PW
    returns the password provided by the user when Basic Auth is
    requested and Apache does not handle it (i.e. if Apache does not
    provide REMOTE_USER). 

The following example provides a basic app that requires Basic Auth
and completely bypasses Apache's auth mechanisms.

Example 7. web::request AUTH_USER and web::request AUTH_PW

  # returns 1 if user/pass provided is websh/websh
  proc isAuthenticated {} {
    if {[web::request -count AUTH_USER]} {
    set user [web::request AUTH_USER]
    set pass [web::request AUTH_PW]
    if {[string eq $user "websh"] &amp;&amp; [string eq $pass "websh"]} {
        return 1
	}
    }
    return 0
  }

  # the default command requests Basic Auth unless provided correctly
  web::command default {
    if {![isAuthenticated]} {
    web::response -set Status {401 Authorization Required}
    web::response -set WWW-Authenticate {Basic realm="Websh auth"}
    web::put "Sorry, you're out"
    } else {
    web::put "You're in"
    }
  }

  # command dispath
  web::dispatch
  

Note: CGI usually does not expose the Basic Auth Authorization header
for security reasons. The following configuration for Apache (as of
version 2.0.51) will allow Websh to also provide the same
functionality when running in CGI (requires mod_setenvif):

Example 8. Apache configuration for AUTH_USER and AUTH_PW to work
           under CGI

  SetEnvIf Authorization "^(Basic .+)$" AUTH_BASIC=$1

Important security consideration: This configuration will also expose
the authentication information to Websh when Apache does handle the
authentication. Although Websh hides the information in that case it
is always available in the CGI environment. Use this Configuration
carefully.""

If you ever find the time to play around with this let me know if it
works for you.

Best regards
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Authentification</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200902.mbox/%3c20090220171449.GI5028@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090220171449-GI5028@netcetera-ch%3e</id>
<updated>2009-02-20T17:14:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Holger

&gt; some time ago (Apr 2006) we had a discussion on how to add access to
&gt; user/password from the authentication of APACHE.

Sure I remember. I actually have some uncommitted code lying around, but
I never really made it work properly. If you accidentially followed my
post on c.l.t two days ago: thats' one of those loose ends, I'd like to
tie sometime ;-)

&gt; Today I installed websh on a new server (upgrading to APACHE 2.2.10). 
&gt; I had some problems, which basically resulted from using
&gt; 
&gt;     web::response -httpresponse  "HTTP/1.x 401"
&gt; 
&gt; which worked fine with APACHE 2.0. Now it needs to be
&gt; 
&gt;     web::response -httpresponse  "HTTP/1.0 401 Unauthorized"
&gt; 
&gt; otherwise the response status will not make it to the
&gt; browser. Instead "HTTP/1.0 200 OK" is sent, which is not triggering
&gt; the user/password dialog in the browser.
&gt; This seems to be in the APACHE part, at least I did not see anything
&gt; in websh to do this.

A similar problem was reported ercently about -httpresponse not
working anymore. A workaround for pretty much any header to send seems

    web::response -set Status "401 $myResponseText"

&gt; &gt; You have me almost convinced :-) ...
&gt; 
&gt; For this new installation I decided to use the newest version from
&gt; SVN, also because there were some bugfixes with response and APACHE
&gt; 2.2 reported. I sadly recognized, that the changes were not in
&gt; (yet). Any plans to do so?

As I wrote above: Plan: yes. Any time soon? I can't promise
anything. I have another thing I want to commit first: load
libwebsh.so/websh.dll from websh/websh.exe and mod_websh.so instead of
statically linking the same object code to the various targets. (No
functional change, but just a cleaner way to deploy, as the compiled
code installed only once.) When this is done: I'll give it another
try.

&gt; However, I integrated your patch for 2.0 and it again works like a
&gt; charm for me.

Thanks for letting me kow :-)

Cheers
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Authentification</title>
<author><name>&quot;Holger Zeinert&quot; &lt;holger.zeinert@lmsintl.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200902.mbox/%3cBB046CA812535C45BD0029AA9D04BA790603184D@KL-SRV57.lmsintl.com%3e"/>
<id>urn:uuid:%3cBB046CA812535C45BD0029AA9D04BA790603184D@KL-SRV57-lmsintl-com%3e</id>
<updated>2009-02-20T16:53:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ronny,

some time ago (Apr 2006) we had a discussion on how to add access to user/password from the
authentication of APACHE.

Today I installed websh on a new server (upgrading to APACHE 2.2.10). 
I had some problems, which basically resulted from using

    web::response -httpresponse  "HTTP/1.x 401"

which worked fine with APACHE 2.0. Now it needs to be

    web::response -httpresponse  "HTTP/1.0 401 Unauthorized"

otherwise the response status will not make it to the browser. Instead "HTTP/1.0 200 OK" is
sent, which is not triggering the user/password dialog in the browser. 
This seems to be in the APACHE part, at least I did not see anything in websh to do this.


&gt; &gt; &gt; &gt; Any suggestions why it should (or not) be included?
&gt; &gt; &gt; 
&gt; &gt; &gt; simple answer: it's available in 
&gt; &gt; &gt; 	- Rivet 
&gt; &gt; &gt; 		via $USER(user) / $USER(pass) 
&gt; &gt; &gt; 	- PHP 
&gt; &gt; &gt; 		via a variable $PHP_AUTH_USER / $PHP_AUTH_PW rsp.
&gt; &gt; &gt; 		$_SERVER['PHP_AUTH_USER'] / $_SERVER['PHP_AUTH_PW'], 
&gt; &gt; &gt; 		see http://de3.php.net/manual/de/features.http-auth.php
&gt; &gt; &gt; 
&gt; &gt; &gt; PHP mentions, that it only works if PHP is used as module. I 
&gt; &gt; &gt; guess the same would apply to WebSH. If an external auth mechanism
&gt; &gt; &gt; was used, then REMOTE_USER is set and user/password is not
&gt; &gt; &gt; available for security reasons.
&gt;  
&gt; You have me almost convinced :-) ...

For this new installation I decided to use the newest version from SVN, also because there
were some bugfixes with response and APACHE 2.2 reported. I sadly recognized, that the changes
were not in (yet). Any plans to do so? 

However, I integrated your patch for 2.0 and it again works like a charm for me.

Best regards
Holger


Holger Zeinert
Product Development Manager LMS TecWare

LMS Deutschland GmbH
Test Division
Luxemburger Str. 7
D-67657 Kaiserslautern [Germany]

T +49 631 30322 223
M +49 163 4166 300
F +49 631 30322 166

mailto:holger.zeinert(a)lmsintl.com
http://www.lmsintl.com
___________________________________________
LMS Deutschland GmbH
Geschäftsführer: Heinz-Peter Vogt, Dr.-Ing. Urbain Vandeurzen
Sitz: Kaiserslautern
Registergericht: HRB Kaiserslautern 3706



---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cookie Based Sessions / Google Analytics</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200902.mbox/%3c20090217082541.GA22625@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090217082541-GA22625@netcetera-ch%3e</id>
<updated>2009-02-17T08:25:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; Does anyone have any idea why cookies with the leading underscores would  
&gt; do this?

Nope.

Can you provide a sample that doesn't work (a list of cookies that are
not read correctly)? Are you running mod_websh or websh in CGI? Which
version? 3.6.0b4 or latest from repository? (Although nothing
regarding cookies changed since 3.6.0b4 was changed.

-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Cookie Based Sessions / Google Analytics</title>
<author><name>Leon Hauck &lt;leon@fulcrum-hosting.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200902.mbox/%3c4999D888.5030209@fulcrum-hosting.com%3e"/>
<id>urn:uuid:%3c4999D888-5030209@fulcrum-hosting-com%3e</id>
<updated>2009-02-16T21:20:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I posted this a while back and didn't get an answer so I thought I'd 
give it another try since the problem reared it's head again.

We're using cookie based sessions with no problems, until we add the 
Google Analytics Tracking Code.  This creates a couple of cookies that 
start with __utxx as their name.

Once those cookies are in the browser then our websh based session 
variables don't work.  If we go in and delete the __utxx cookies, 
everything is back to normal.

Does anyone have any idea why cookies with the leading underscores would 
do this?

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Panic message in the log file</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200901.mbox/%3c20090111200955.GB8008@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090111200955-GB8008@netcetera-ch%3e</id>
<updated>2009-01-11T20:09:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; [Sun Jan 11 08:14:11 2009] [notice] Child 5380: All worker threads have 
&gt; exited.
&gt; Tcl_AsyncDelete: async handler deleted by the wrong thread
&gt; 
&gt; This application has requested the Runtime to terminate it in an unusual 
&gt; way.
&gt; Please contact the application's support team for more information.
&gt; [Sun Jan 11 08:14:11 2009] [notice] Parent: Child process exited 
&gt; successfully.

The message comes from Tcl, not from Websh code (I mean, at least
not directly, as we don't call Tcl_AsyncDelete anywhere...)

&gt; Any ideas? Or should it be ignored.

Seems not too big a problem since it occurs only during shutdown, which is
not a particularily reliable status anyway, right ;-) 

&gt; I'm running websh 3.6b1 with no other binary extensions loaded.

The panic message in Tcl_AsyncDelete was introduced only in April 2008
to Tcl. Who's calling it though: sorry, can't tell.

Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: websh does not allow multiple Set-Cookie headers?</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200901.mbox/%3c20090111190031.GA8008@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090111190031-GA8008@netcetera-ch%3e</id>
<updated>2009-01-11T19:00:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; Never mind, didn't realize you can specify multiple values to 
&gt; web::response -set to generate multiple header lines for the same key.

In addition, you can add multiple cookies (headers) using the
-lappend option:

&gt; websh
% web::response -set Set-Cookie Foo
Foo
% web::response -lappend Set-Cookie Bar
Foo Bar
% web::response -lappend Set-Cookie Zoo
Foo Bar Zoo
% web::put Test
Content-Type: text/html
Set-Cookie: Foo
Set-Cookie: Bar
Set-Cookie: Zoo
Generator: websh 3.6.0b4

Test%

hth
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: websh does not allow multiple Set-Cookie headers?</title>
<author><name>&quot;Ashok P. Nadkarni&quot; &lt;apnmbx-public@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200901.mbox/%3c49697BD4.1070507@yahoo.com%3e"/>
<id>urn:uuid:%3c49697BD4-1070507@yahoo-com%3e</id>
<updated>2009-01-11T04:55:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Never mind, didn't realize you can specify multiple values to 
web::response -set to generate multiple header lines for the same key.
/Ashok

Ashok P. Nadkarni wrote:
&gt; A server is allowed to send multiple Set-Cookie headers (one for each 
&gt; cookie with different expirations etc.) However websh does not seem to 
&gt; allow this. Using "web::response -set Set-Cookie COOKIEDATA" multiple 
&gt; times results in only the last call being in effect (i.e. only one 
&gt; Set-Cookie line with the contents of the last call are sent to the 
&gt; client).
&gt;
&gt; Any way to work around this? If you can point me to the approximate 
&gt; place to look at modifying this behaviour, I can take a stab.
&gt;
&gt; As an aside, I cannot use cookiecontext type mechanisms as the cookies 
&gt; set have to be readable by other server-side non-websh components.
&gt;
&gt; Thanks
&gt;
&gt; /Ashok
&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
&gt; For additional commands, e-mail: websh-user-help@tcl.apache.org
&gt;
&gt;


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>websh does not allow multiple Set-Cookie headers?</title>
<author><name>&quot;Ashok P. Nadkarni&quot; &lt;apnmbx-public@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200901.mbox/%3c49696422.3050803@yahoo.com%3e"/>
<id>urn:uuid:%3c49696422-3050803@yahoo-com%3e</id>
<updated>2009-01-11T03:14:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
A server is allowed to send multiple Set-Cookie headers (one for each 
cookie with different expirations etc.) However websh does not seem to 
allow this. Using "web::response -set Set-Cookie COOKIEDATA" multiple 
times results in only the last call being in effect (i.e. only one 
Set-Cookie line with the contents of the last call are sent to the client).

Any way to work around this? If you can point me to the approximate 
place to look at modifying this behaviour, I can take a stab.

As an aside, I cannot use cookiecontext type mechanisms as the cookies 
set have to be readable by other server-side non-websh components.

Thanks

/Ashok



---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Panic message in the log file</title>
<author><name>&quot;Ashok P. Nadkarni&quot; &lt;apnmbx-public@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200901.mbox/%3c49695DE7.90403@yahoo.com%3e"/>
<id>urn:uuid:%3c49695DE7-90403@yahoo-com%3e</id>
<updated>2009-01-11T02:48:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
When shutting down Apache, I occasionally see the following message in 
the Apache log file

[Sun Jan 11 08:14:11 2009] [notice] Child 5380: All worker threads have 
exited.
Tcl_AsyncDelete: async handler deleted by the wrong thread

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
[Sun Jan 11 08:14:11 2009] [notice] Parent: Child process exited 
successfully.

Any ideas? Or should it be ignored.

I'm running websh 3.6b1 with no other binary extensions loaded.

/Ashok

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Changing maxrequests on an interpreter in websh.conf when it is specific to each file</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200812.mbox/%3c20081222101100.GC5891@netcetera.ch%3e"/>
<id>urn:uuid:%3c20081222101100-GC5891@netcetera-ch%3e</id>
<updated>2008-12-22T10:11:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; To answer my own question, I landed up doing the following:
&gt; 
&gt; if {[string match *.html $file]} {
&gt;   set script [file join [file dirname $file] htmlhandler.ws3]
&gt;   web::interpclasscfg $script maxrequests 10
&gt;   return $script
&gt; }
&gt; 
&gt; Not sure what impact that might have on memory (separate interpclass 
&gt; structures per file?) but it does what I want for the time being in 
&gt; terms of quicker startup.

There's no impact on memory as you have an interpclass for every
script you use anyway. The only impact is that you call
web::interpclasscfg way too often. It is not really an expensive call
though, but it needs an additional lock on some internal resource and
locks can be bottlenecks. I can't tell you however whether this is
worse than creating the overhead of tracking the files you already
have configured:

 if {[string match *.html $file]} {
   set script [file join [file dirname $file] htmlhandler.ws3]
   if {![info exists pool($script)]} {
      web::interpclasscfg $script maxrequests 10
      set pool($script) 1
   }
   return $script
 }

This takes a bit more memory (the pool array) but as I said: don't
know if it actually makes a difference. Could be even slower...

Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Changing maxrequests on an interpreter in websh.conf when it is specific to each file</title>
<author><name>&quot;Ashok P. Nadkarni&quot; &lt;apnadkarni@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200812.mbox/%3c494E79A0.5010602@yahoo.com%3e"/>
<id>urn:uuid:%3c494E79A0-5010602@yahoo-com%3e</id>
<updated>2008-12-21T17:15:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
To answer my own question, I landed up doing the following:

if {[string match *.html $file]} {
   set script [file join [file dirname $file] htmlhandler.ws3]
   web::interpclasscfg $script maxrequests 10
   return $script
}

Not sure what impact that might have on memory (separate interpclass 
structures per file?) but it does what I want for the time being in 
terms of quicker startup.

/Ashok

Ashok P. Nadkarni wrote:
&gt; I'm playing around with using namespaces and slaves to reduce the time 
&gt; to deliver a web page by making the interpreter handle multiple 
&gt; requests. The websh.conf file has the lines
&gt;
&gt;    # individual scripts (each with its own interpreters)
&gt;    if {[string match *.ws3 $file]} {
&gt;    return $file
&gt;    }
&gt;
&gt; in the web::interpmap command. The question is, not how do I write the 
&gt; corresponding web::interpclasscfg command to change maxrequests to 
&gt; (say) 10 ? interpmap takes the class name as a parameter but since 
&gt; that changes on a per file basis, how do I change it? The ws3 files 
&gt; may lie in different directories so I don't want to hardcode or 
&gt; enumerate full paths if possible.
&gt;
&gt; A somewhat related question is that I want the html handler to be 
&gt; specific to the directory that the html file lives in. So I've 
&gt; modified the html handler fragment in web::interpmap in websh.conf to be
&gt;
&gt;    # default html content (html that contains snipplets only)
&gt;    # all requests for *.html files share interpreters
&gt;    if {[string match *.html $file]} {
&gt;    return [file join [file dirname $file] htmlhandler.ws3]
&gt;    }
&gt;
&gt; Again, I have the same question, how do I now configure interpclasscfg 
&gt; for each to change the maxrequests without having to list out each 
&gt; possible directory as a separate class ? (maxrequests will be same for 
&gt; all)
&gt;
&gt; Any solutions ?
&gt;
&gt; Thanks
&gt;
&gt; /Ashok
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
&gt; For additional commands, e-mail: websh-user-help@tcl.apache.org
&gt;
&gt;


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Changing maxrequests on an interpreter in websh.conf when it is specific to each file</title>
<author><name>&quot;Ashok P. Nadkarni&quot; &lt;apnadkarni@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200812.mbox/%3c494C64D1.6060102@yahoo.com%3e"/>
<id>urn:uuid:%3c494C64D1-6060102@yahoo-com%3e</id>
<updated>2008-12-20T03:21:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'm playing around with using namespaces and slaves to reduce the time 
to deliver a web page by making the interpreter handle multiple 
requests. The websh.conf file has the lines

    # individual scripts (each with its own interpreters)
    if {[string match *.ws3 $file]} {
    return $file
    }

in the web::interpmap command. The question is, not how do I write the 
corresponding web::interpclasscfg command to change maxrequests to (say) 
10 ? interpmap takes the class name as a parameter but since that 
changes on a per file basis, how do I change it? The ws3 files may lie 
in different directories so I don't want to hardcode or enumerate full 
paths if possible.

A somewhat related question is that I want the html handler to be 
specific to the directory that the html file lives in. So I've modified 
the html handler fragment in web::interpmap in websh.conf to be

    # default html content (html that contains snipplets only)
    # all requests for *.html files share interpreters
    if {[string match *.html $file]} {
    return [file join [file dirname $file] htmlhandler.ws3]
    }

Again, I have the same question, how do I now configure interpclasscfg 
for each to change the maxrequests without having to list out each 
possible directory as a separate class ? (maxrequests will be same for all)

Any solutions ?

Thanks

/Ashok

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Incorrect out put from cmdurl when url has an explicit port</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200812.mbox/%3c20081218114833.GB12598@netcetera.ch%3e"/>
<id>urn:uuid:%3c20081218114833-GB12598@netcetera-ch%3e</id>
<updated>2008-12-18T11:48:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; If I access a script using the URL 
&gt; http://localhost:8080/printrequest.wtf (I'm using wtf as the extension 
&gt; instead of ws3), then the command
&gt; 
&gt; web::put [web::cmdurl command -urlformat {scheme host port scriptname 
&gt; pathinfo querystring}]
&gt; 
&gt; outputs "http://localhost:8080:8080/printrequest.wtf?XDxJ7kkLRVB75Hb..." 
&gt; in the web page.
&gt; 
&gt; Note the port number 8080 is listed twice. Is this a bug or is port not 
&gt; to be specified if host is specified?

No. I'd call it a bug. Depending on Browser and Web server the
HTTP_HOST is sometimes with port and sometimes without. That used to
be more often without port... (when the Websh code was written.)

I'll put it on the bug list. Work around it by using something like 

  web::cmdurlcfg -host localhost

hth
Ronnie

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Incorrect out put from cmdurl when url has an explicit port</title>
<author><name>&quot;Ashok P. Nadkarni&quot; &lt;apnadkarni@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200812.mbox/%3c4949DC32.1090705@yahoo.com%3e"/>
<id>urn:uuid:%3c4949DC32-1090705@yahoo-com%3e</id>
<updated>2008-12-18T05:14:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
If I access a script using the URL 
http://localhost:8080/printrequest.wtf (I'm using wtf as the extension 
instead of ws3), then the command

web::put [web::cmdurl command -urlformat {scheme host port scriptname 
pathinfo querystring}]

outputs "http://localhost:8080:8080/printrequest.wtf?XDxJ7kkLRVB75Hb..." 
in the web page.

Note the port number 8080 is listed twice. Is this a bug or is port not 
to be specified if host is specified?

Thanks

/Ashok


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: WEBSH + TCL</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200811.mbox/%3c20081114090007.GE23229@netcetera.ch%3e"/>
<id>urn:uuid:%3c20081114090007-GE23229@netcetera-ch%3e</id>
<updated>2008-11-14T09:00:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

&gt; I am trying to find a step by step manual to install TCL on a windows
&gt; 2003 machine and later to create the websh.so file.
&gt; Apache 2.2 is already installed and don't get the clue how to install
&gt; websh so that it will work with Apache.
&gt; I read many time that Apache will create the module_websh.so but how to
&gt; do this is for me not clear.

Please use websh-user@tcl.apache.org for this type of question.

To compile and install Websh on Windows, you need to install Tcl
first. Use (for example) an ActiveTcl binary distribution (from
http://www.activestate.com/Products/activetcl/index.mhtml)

Make sure that Apache is installed. Get it from
http://httpd.apache.org/download.cgi

Then, get Websh (available in source only). Preferrably, use the
latest version from Subversion, not the last build available. You can
get the latest source using an SVN client from
http://svn.apache.org/repos/asf/tcl/websh/trunk/

To comile and install Websh, you need to have an MS Visual Visual
Studio 6.0 (or higher) nmake utility. Follow the instructions in
src\win\README
(http://svn.apache.org/repos/asf/tcl/websh/trunk/src/win/README)

To run Websh, either just use websh.exe to run Websh CGI scripts or
configure Apache to use mod_websh.so (which is created by compiling
Websh, not Apache HTTPD). Follow the README.txt found in your
installation directory or the source directory doc\mod_websh\README or
online
http://svn.apache.org/repos/asf/tcl/websh/trunk/doc/mod_websh/README

hth
Ronnie
-- 
Netcetera goes mobile - travel in Zürich with our free iPhone application:
http://mobile.netcetera.ch/tramdroid

Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: A newbie question about Websh</title>
<author><name>JimmyDave &lt;jimmy.dave22@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200810.mbox/%3c20147598.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c20147598-post@talk-nabble-com%3e</id>
<updated>2008-10-24T10:17:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

No exact idea, but I suppose you need to use unicode text.  I suspect the
problem is in your email client but I really don't know..


Ricardo Aiello wrote:
&gt; 
&gt; Hi,
&gt;  
&gt; I was looking for a way to run a TCL/TK script in a web environment, and I
&gt; ran into Websh. But when I tried to run my script, I realised that I had
&gt; to
&gt; change several things of the original TCL/TK script for it to run in
&gt; Websh.
&gt;  
&gt; I couldn't find any documentation covering this in the webpage. Could you
&gt; please tell me how to adapt a pure TCL/TK script to run in Websh?
&gt;  
&gt; Thanks in advance,
&gt;  
&gt; Ricardo
&gt;  
&gt; 
&gt; 


-----
Getting  http://www.fortuneave.com/payday-loans.html payday loans  online is
now easier than ever and find out 
http://www.fortuneave.com/dallas-investment-property.html dallas investment
property .
-- 
View this message in context: http://www.nabble.com/A-newbie-question-about-Websh-tp19768207p20147598.html
Sent from the Websh - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: A newbie question about Websh</title>
<author><name>&quot;Ricardo Aiello&quot; &lt;ricardo.aiello@yahoo.com.ar&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200810.mbox/%3c09560BA71AA047818F524D6433FD3B69@RICKY%3e"/>
<id>urn:uuid:%3c09560BA71AA047818F524D6433FD3B69@RICKY%3e</id>
<updated>2008-10-02T18:01:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I tried that script, but apparently it won't work (it won't even install)
with the newer versions of IE and FF. Thanks anyway for the suggestion.

Greetings,

Ricardo
 

&gt; -----Mensaje original-----
&gt; De: Ronnie Brunner [mailto:ronnie.brunner@netcetera.ch] 
&gt; Enviado el: Jueves 2 de Octubre de 2008 5:12
&gt; Para: websh-user@tcl.apache.org
&gt; CC: Ricardo Aiello
&gt; Asunto: Re: A newbie question about Websh
&gt; 
&gt; Hi
&gt; 
&gt; &gt; Maybe I could look into compiling the TCL/TK script into 
&gt; something that can
&gt; &gt; be embedded into a HTML web page. But I don't know what to 
&gt; look for. In a
&gt; &gt; matter of fact, I don't even know if that's possible... any 
&gt; ideas you may
&gt; &gt; have, I'll be happy to hear :)
&gt; 
&gt; As Massimo mentioned in his response to your Rivet post, the only way
&gt; to bring a Tk app to the client in a browser is probably the Tcl
&gt; plugin:
&gt; 
&gt;   http://www.tcl.tk/software/plugin/
&gt; 
&gt; Other than that: you could package the app and distribute it through
&gt; the browser. It's not really a web app then, but you can distribute it
&gt; through the web. (You could use starkit to create a self-contained
&gt; binary so that installation and distribution is
&gt; simpler. http://www.tcl.tk/starkits/)
&gt; 
&gt; hth
&gt; Ronnie
&gt; -- 
&gt; Ronnie Brunner | ronnie.brunner@netcetera.ch
&gt; phone +41-44-247 79 79 | fax +41-44-247 70 75
&gt; Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: A newbie question about Websh</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200810.mbox/%3c20081002081144.GA7134@netcetera.ch%3e"/>
<id>urn:uuid:%3c20081002081144-GA7134@netcetera-ch%3e</id>
<updated>2008-10-02T08:11:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

&gt; Maybe I could look into compiling the TCL/TK script into something that can
&gt; be embedded into a HTML web page. But I don't know what to look for. In a
&gt; matter of fact, I don't even know if that's possible... any ideas you may
&gt; have, I'll be happy to hear :)

As Massimo mentioned in his response to your Rivet post, the only way
to bring a Tk app to the client in a browser is probably the Tcl
plugin:

  http://www.tcl.tk/software/plugin/

Other than that: you could package the app and distribute it through
the browser. It's not really a web app then, but you can distribute it
through the web. (You could use starkit to create a self-contained
binary so that installation and distribution is
simpler. http://www.tcl.tk/starkits/)

hth
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: A newbie question about Websh</title>
<author><name>&quot;Ricardo Aiello&quot; &lt;ricardo.aiello@yahoo.com.ar&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200810.mbox/%3c1333901A27884BAE95D19A1349ECB55B@RICKY%3e"/>
<id>urn:uuid:%3c1333901A27884BAE95D19A1349ECB55B@RICKY%3e</id>
<updated>2008-10-01T22:22:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Ronnie,

&gt; But I understood you wanted to have Websh on the web server side
&gt; and write something that renders a Tk GUI in the browser...

Exactly. I have a third-party application (a WYSIWYG editor, GUI included)
which is already developed in TCL/TK, and I want to run it as a web
application over Apache2/Win32. 

The live examples in the webpage (i.e.
http://tcl.apache.org/websh/examples/memory.ws3) made me think Websh could
be the solution, but if it won't allow me to embed a TK GUI, it isn't the
right tool to accomplish this.

Maybe I could look into compiling the TCL/TK script into something that can
be embedded into a HTML web page. But I don't know what to look for. In a
matter of fact, I don't even know if that's possible... any ideas you may
have, I'll be happy to hear :)

Thanks for your help, I really appreciate it. Like you probably noticed by
now, I'm a newbie at this.

Greetings,

Ricardo
 

&gt; -----Mensaje original-----
&gt; De: Ronnie Brunner [mailto:ronnie.brunner@netcetera.ch] 
&gt; Enviado el: Miércoles 1 de Octubre de 2008 19:00
&gt; Para: websh-user@tcl.apache.org
&gt; Asunto: Re: A newbie question about Websh
&gt; 
&gt; Hi
&gt; 
&gt; &gt; I couldn't find any documentation covering this in the 
&gt; webpage. Could you
&gt; &gt; please tell me how to adapt a pure TCL/TK script to run in Websh?
&gt; 
&gt; If you have a plain Tcl sricpt that works in a CGI environment, it
&gt; will also work as-is in Websh. Websh just adds lots of functionality
&gt; regarding request handling and other web related stuff.
&gt; 
&gt; However Tk scripts are not compatible at all: Tk is a client GUI
&gt; framework and your cannot really use it in Websh at all.
&gt; 
&gt; (Well that's not quite true: as Websh is basically just an 
&gt; extended Tcl
&gt; shell, it could also be used to write a client app with a Tk 
&gt; GUI. But I
&gt; understood you wanted to have Websh on the web server side and write
&gt; something that renders a Tk GUI in the browser...)
&gt; 
&gt; If you want to build an ajax based rich web application, you might
&gt; want to consider looking at Aejaks (http://aejaks.sourceforge.net),
&gt; which is a Tcl ajax framework that borrows much from Tk (but is not
&gt; compatible either...)
&gt; 
&gt; hth
&gt; Ronnie
&gt; -- 
&gt; Ronnie Brunner | ronnie.brunner@netcetera.ch
&gt; phone +41-44-247 79 79 | fax +41-44-247 70 75
&gt; Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
&gt; For additional commands, e-mail: websh-user-help@tcl.apache.org
&gt; 


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: A newbie question about Websh</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200810.mbox/%3c20081001215930.GA6944@netcetera.ch%3e"/>
<id>urn:uuid:%3c20081001215930-GA6944@netcetera-ch%3e</id>
<updated>2008-10-01T21:59:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

&gt; I couldn't find any documentation covering this in the webpage. Could you
&gt; please tell me how to adapt a pure TCL/TK script to run in Websh?

If you have a plain Tcl sricpt that works in a CGI environment, it
will also work as-is in Websh. Websh just adds lots of functionality
regarding request handling and other web related stuff.

However Tk scripts are not compatible at all: Tk is a client GUI
framework and your cannot really use it in Websh at all.

(Well that's not quite true: as Websh is basically just an extended Tcl
shell, it could also be used to write a client app with a Tk GUI. But I
understood you wanted to have Websh on the web server side and write
something that renders a Tk GUI in the browser...)

If you want to build an ajax based rich web application, you might
want to consider looking at Aejaks (http://aejaks.sourceforge.net),
which is a Tcl ajax framework that borrows much from Tk (but is not
compatible either...)

hth
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>A newbie question about Websh</title>
<author><name>&quot;Ricardo Aiello&quot; &lt;ricardo.aiello@yahoo.com.ar&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-user/200810.mbox/%3c05908677AE194B1FBAD5C3A9207620D6@RICKY%3e"/>
<id>urn:uuid:%3c05908677AE194B1FBAD5C3A9207620D6@RICKY%3e</id>
<updated>2008-10-01T20:13:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
 
I was looking for a way to run a TCL/TK script in a web environment, and I
ran into Websh. But when I tried to run my script, I realised that I had to
change several things of the original TCL/TK script for it to run in Websh.
 
I couldn't find any documentation covering this in the webpage. Could you
please tell me how to adapt a pure TCL/TK script to run in Websh?
 
Thanks in advance,
 
Ricardo
 


</pre>
</div>
</content>
</entry>
</feed>
