You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(23) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(32) |
Feb
(23) |
Mar
(23) |
Apr
(11) |
May
(19) |
Jun
(8) |
Jul
(28) |
Aug
(19) |
Sep
(11) |
Oct
(8) |
Nov
(39) |
Dec
(22) |
2002 |
Jan
(14) |
Feb
(64) |
Mar
(14) |
Apr
(28) |
May
(25) |
Jun
(34) |
Jul
(26) |
Aug
(88) |
Sep
(66) |
Oct
(26) |
Nov
(16) |
Dec
(22) |
2003 |
Jan
(18) |
Feb
(16) |
Mar
(20) |
Apr
(20) |
May
(26) |
Jun
(43) |
Jul
(42) |
Aug
(22) |
Sep
(41) |
Oct
(37) |
Nov
(27) |
Dec
(23) |
2004 |
Jan
(26) |
Feb
(9) |
Mar
(40) |
Apr
(24) |
May
(26) |
Jun
(56) |
Jul
(15) |
Aug
(19) |
Sep
(20) |
Oct
(30) |
Nov
(29) |
Dec
(10) |
2005 |
Jan
(1) |
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2006 |
Jan
(10) |
Feb
(6) |
Mar
(10) |
Apr
(9) |
May
(4) |
Jun
(1) |
Jul
(2) |
Aug
(6) |
Sep
(1) |
Oct
(1) |
Nov
(11) |
Dec
|
2007 |
Jan
(4) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(5) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
(19) |
Dec
(3) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Steve B. <st...@pr...> - 2001-09-17 11:46:47
|
I noticed some traffic on clt regarding the package require tcllib0.7 in bin/httpd.tcl. I get a different message, which comes from the error branch (line 104 or thereabouts). At the moment, I'm progressing by simply commenting the line out, and I haven't so far hit a problem. But I'd like to know whether it *actually* matters. I'm in the process of building and testing tclhttpd wrapped as a scripted document for use on a customer's site with tclkit, and will be working through the traffic on the list to look for other bugs and patches. Is a bugfix release planned? |
From: Ralf W. <a52...@gm...> - 2001-09-02 18:21:23
|
Hi, I've done it for NT and Windows 2000 and tclsvc works quite well for tclhhtpd, beside a usually slow resonse when shutting down the service. As I did not want to interfere with or rely on an already existing Tcl/Tk installation, I added two new registry keys (Tcl_library and Tcl_PkgPath) and modified the service wrapper to set the paths for the Tcl Library and the Tcl Package Path if these registry keys are present. You should be able to use the standard service wrapper in combination with a standard tcl installation to run tclhttpd as a service. Remember to disable the "vwait forever" in httpd.tcl using: if {![info exists tcl_service]} { vwait forever } as mentioned in http://www.sensus.org/tcl/tclsvc.htm Wpt Brent Welch wrote: > > You need to create a special Tcl interpreter to run as a service. > One example is available at > http://www.sensus.org/tcl/tclsvc.htm > and > http://www.sensus.org/tcl/tclsvc11.tar.gz > > Has anyone on the mailing list done that yet? > I haven't had time to play with this myself. > > >>>"Jempty, George" said: > > Greetings! > > > > In my new position I have discovered that one of our third party vendors > > allows us to write Tcl scripts to customize an application. So, to leverage > > the Tcl knowledge we thus gain, I intend to do some tclhttpd development, as > > I am also responsible for setting up an app server (I've got previous > > Apache, CGI, PHP and Unix experience and am confident of catching on > > quickly). > > > > To make a long story short, I'm a newbie, but am excited about the prospect > > of working with Tcl and tclhttpd, especially considering how incredibly > > simple it was to install and then run the web server on my Windows 98 > > workstation. > > > > I have searched the mailing list archives, as well as the online docs, and > > book chapter, but have seen no mention that tclhttpd will run as a service > > under Windows NT/2000. Is that correct? If so, mind if I submit it as a > > feature request on sourceforge?! > > > > Thanks in advance! > > > > George M. Jempty > > Database Administrator > > Regional West Medical Center > > Scottsbluff, Nebraska > > 308.630.2408 > > > > _______________________________________________ > > TclHttpd-users mailing list > > Tcl...@li... > > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users > > -- > Brent Welch > Software Architect, Panasas Inc > Pioneering Smart and Infinitely Scalable Storage Networks > > www.panasas.com > we...@pa... > > _______________________________________________ > TclHttpd-users mailing list > Tcl...@li... > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users |
From: Brent W. <we...@pa...> - 2001-08-29 23:31:52
|
As a shameless plug, pick up my book, Practical Programming in Tcl and Tk, http://www.beedub.com/book/ in which I explain what commands were added in what releases of Tcl and Tk dating back to Tcl 7.4/Tk 4.0 (including what was new in those releases) The clock command was indeed added in Tcl 7.5 Also the first time socket appeared, and the first version that will run TclHttpd. For general Tcl Q and A, you should also check out the comp.lang.tcl newsgroup. >>>"Jempty, George" said: > I'm doing this web app on an old Unix box with Tcl 7.4. The following > straightforward commands don't work: > > set today [clock seconds] > puts "$today<br>" > > (I tried [clock format [clock seconds]] at first, also without success) > > Is "clock" not a valid command in 7.4? I looked at the online docs, and > there it is for version 7.5, but that's as far back as they go. With > version 7.4 am I instead forced to resort to: > > set today [exec date] > > Thanks in advance: this email group has been a big help as I learn Tcl. > > George M. Jempty > Database Administrator > Regional West Medical Center > Scottsbluff, Nebraska > 308.630.2408 > > > _______________________________________________ > TclHttpd-users mailing list > Tcl...@li... > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users -- Brent Welch Software Architect, Panasas Inc Pioneering Smart and Infinitely Scalable Storage Networks www.panasas.com we...@pa... |
From: Jempty, G. <JE...@RW...> - 2001-08-29 16:12:20
|
I'm doing this web app on an old Unix box with Tcl 7.4. The following straightforward commands don't work: set today [clock seconds] puts "$today<br>" (I tried [clock format [clock seconds]] at first, also without success) Is "clock" not a valid command in 7.4? I looked at the online docs, and there it is for version 7.5, but that's as far back as they go. With version 7.4 am I instead forced to resort to: set today [exec date] Thanks in advance: this email group has been a big help as I learn Tcl. George M. Jempty Database Administrator Regional West Medical Center Scottsbluff, Nebraska 308.630.2408 |
From: Jempty, G. <JE...@RW...> - 2001-08-27 17:40:27
|
Outstanding! It was just getting that pipe in the right place. And it seems to work much faster than Perl ;) Thanks!! G > -----Original Message----- > From: Daniel O'Brien [SMTP:dmo...@ya...] > Sent: Monday, August 27, 2001 11:31 AM > To: Jempty, George; 'tcl...@li...' > Subject: Re: [Tclhttpd-users] Piping uncompress result(s) to open > > You can do the same thing: > > set f [open "| gzcat $arg" r] > > while {[gets $f line] != -1} { > } > > > --- "Jempty, George" <JE...@RW...> wrote: > > This is a general Tcl question but I'm having problems posting to the > > general list online. > > > > Can you do something like the following Perl with Tcl? > > > > open(LOG, "uncompress -c '$errorLogPath.Z'|"); > > > > Or do I have to uncompress somewhere -- using exec I presume -- read > > that > > (and delete when through)? I've read the docs but I learn better by > > example. > > > ===== > Dan O'Brien > dmo...@ya... > Cell: 614-783-4859 Work: 614-476-8473 > Home: 740-927-2178 Pataskala, OH > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/ |
From: Daniel O'B. <dmo...@ya...> - 2001-08-27 17:31:15
|
You can do the same thing: set f [open "| gzcat $arg" r] while {[gets $f line] != -1} { } --- "Jempty, George" <JE...@RW...> wrote: > This is a general Tcl question but I'm having problems posting to the > general list online. > > Can you do something like the following Perl with Tcl? > > open(LOG, "uncompress -c '$errorLogPath.Z'|"); > > Or do I have to uncompress somewhere -- using exec I presume -- read > that > (and delete when through)? I've read the docs but I learn better by > example. ===== Dan O'Brien dmo...@ya... Cell: 614-783-4859 Work: 614-476-8473 Home: 740-927-2178 Pataskala, OH __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ |
From: Jempty, G. <JE...@RW...> - 2001-08-27 17:21:52
|
This is a general Tcl question but I'm having problems posting to the general list online. Can you do something like the following Perl with Tcl? open(LOG, "uncompress -c '$errorLogPath.Z'|"); Or do I have to uncompress somewhere -- using exec I presume -- read that (and delete when through)? I've read the docs but I learn better by example. Thanks in advance George M. Jempty Database Administrator Regional West Medical Center Scottsbluff, Nebraska 308.630.2408 |
From: Stuart C. <st...@sy...> - 2001-08-24 22:11:12
|
> You need to create a special Tcl interpreter to run as a service. > One example is available at > http://www.sensus.org/tcl/tclsvc.htm > and > http://www.sensus.org/tcl/tclsvc11.tar.gz > > Has anyone on the mailing list done that yet? > I haven't had time to play with this myself. > Done it with TclSvc - works great. Or freewrap it and use ServiceInstaller Haven't tried firedaemon, but that should work, too. Stu |
From: Brent W. <we...@pa...> - 2001-08-23 22:06:51
|
You need to create a special Tcl interpreter to run as a service. One example is available at http://www.sensus.org/tcl/tclsvc.htm and http://www.sensus.org/tcl/tclsvc11.tar.gz Has anyone on the mailing list done that yet? I haven't had time to play with this myself. >>>"Jempty, George" said: > Greetings! > > In my new position I have discovered that one of our third party vendors > allows us to write Tcl scripts to customize an application. So, to leverage > the Tcl knowledge we thus gain, I intend to do some tclhttpd development, as > I am also responsible for setting up an app server (I've got previous > Apache, CGI, PHP and Unix experience and am confident of catching on > quickly). > > To make a long story short, I'm a newbie, but am excited about the prospect > of working with Tcl and tclhttpd, especially considering how incredibly > simple it was to install and then run the web server on my Windows 98 > workstation. > > I have searched the mailing list archives, as well as the online docs, and > book chapter, but have seen no mention that tclhttpd will run as a service > under Windows NT/2000. Is that correct? If so, mind if I submit it as a > feature request on sourceforge?! > > Thanks in advance! > > George M. Jempty > Database Administrator > Regional West Medical Center > Scottsbluff, Nebraska > 308.630.2408 > > _______________________________________________ > TclHttpd-users mailing list > Tcl...@li... > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users -- Brent Welch Software Architect, Panasas Inc Pioneering Smart and Infinitely Scalable Storage Networks www.panasas.com we...@pa... |
From: Jempty, G. <JE...@RW...> - 2001-08-23 19:44:03
|
Greetings! In my new position I have discovered that one of our third party vendors allows us to write Tcl scripts to customize an application. So, to leverage the Tcl knowledge we thus gain, I intend to do some tclhttpd development, as I am also responsible for setting up an app server (I've got previous Apache, CGI, PHP and Unix experience and am confident of catching on quickly). To make a long story short, I'm a newbie, but am excited about the prospect of working with Tcl and tclhttpd, especially considering how incredibly simple it was to install and then run the web server on my Windows 98 workstation. I have searched the mailing list archives, as well as the online docs, and book chapter, but have seen no mention that tclhttpd will run as a service under Windows NT/2000. Is that correct? If so, mind if I submit it as a feature request on sourceforge?! Thanks in advance! George M. Jempty Database Administrator Regional West Medical Center Scottsbluff, Nebraska 308.630.2408 |
From: Brent W. <we...@pa...> - 2001-08-22 21:13:35
|
There is a general Tcl package from Robin Becker called the "DLL Caller" that basically lets you call any function in a DLL. You can crash your program by making bad calls, but once you get it right it is apparently quite useful. http://www.jessikat.demon.co.uk/docdll.html and a varient by Earl Johnson http://users.erols.com/earl-johnson/tcldll.html >>>petrus vloet said: > > Hi, > > We are trying to read out the document properties of win office 97 > documents on Windows NT. > > This has to be done without starting Excel , Word , etc. > By found out that this is a precondition for the dde package, so we can > not use it. > > We know MS provides a ddl called dsofile.dll to do this job in Visual > Basic. > > We have investigated possibilities to "transform" VB Code to C and to > create a dll. > Till now we are not successfull. > > So the question is, was already someone successfull in reading office > properties > without using dde? > Does there exist a tcl package for this job ? > > Thanks, > > -- > #--- With best regards, Mit freundlichen Gruessen, Met vriendelijke > groet, --- > # Piet Vloet > # Siemens AG Austria > # PSE ECT OTN4 > # Rampengasse 3-5 Phone : +43-51707-43819 > # A-1190 Vienna Fax : +43-51707-53582 > # mailto:pet...@si... http://www.siemens.at > > > > _______________________________________________ > TclHttpd-users mailing list > Tcl...@li... > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users -- Brent Welch Software Architect, Panasas Inc Pioneering Smart and Infinitely Scalable Storage Networks www.panasas.com we...@pa... |
From: petrus v. <pet...@si...> - 2001-08-22 14:52:49
|
Hi, We are trying to read out the document properties of win office 97 documents on Windows NT. This has to be done without starting Excel , Word , etc. By found out that this is a precondition for the dde package, so we can not use it. We know MS provides a ddl called dsofile.dll to do this job in Visual Basic. We have investigated possibilities to "transform" VB Code to C and to create a dll. Till now we are not successfull. So the question is, was already someone successfull in reading office properties without using dde? Does there exist a tcl package for this job ? Thanks, -- #--- With best regards, Mit freundlichen Gruessen, Met vriendelijke groet, --- # Piet Vloet # Siemens AG Austria # PSE ECT OTN4 # Rampengasse 3-5 Phone : +43-51707-43819 # A-1190 Vienna Fax : +43-51707-53582 # mailto:pet...@si... http://www.siemens.at |
From: San, S. <SS...@te...> - 2001-08-22 13:07:00
|
Hello How do I call TCL interpreter library to interpret the tcl code in a web page? I have the tcl install in unix solaris but it is not the same path as the web server. from sam Visit TechTarget.com, the leading network of industry-specific Web sites for enterprise IT professionals at http://www.techtarget.com. |
From: Brent W. <we...@pa...> - 2001-08-15 22:28:00
|
This is an interesting application done with TclHttpd that Erik has agreed to let me share with you. Brent |
From: Brent W. <we...@pa...> - 2001-08-15 20:24:59
|
Tcl_EvalFile is equivalent to the "source" command. The only way to pass parameters is to define global Tcl variables. argv comes to mind. You can use Tcl_SetVar to initialize the variables before calling Tcl_EvalFile. Another way to do this is to only have procedure definitions in the file. Then use Tcl_Eval to invoke a command along with whatever arguments you want to pass. >>>"Ashwini Kumar" said: > Hi, > > Does anybody know how to execute a tcl file with arguments from a C > program?. Tcl_EvalFile routine takes only the name of the file as an > argument. But what if we want to specify arguments along with the file > name?. So the command line would be > > tclsh83 a.tcl a.gif > > Tcl_Eval neither interprets source nor tclsh83 as a command > > Basically, I am trying to execute a script file from a spwaned off thread. > > I am programming on Windows environment. > > Thanks in advance, > Ashwini > > > >From: tcl...@li... > >Reply-To: tcl...@li... > >To: tcl...@li... > >Subject: TclHttpd-users digest, Vol 1 #96 - 1 msg > >Date: Tue, 07 Aug 2001 12:09:37 -0700 > > > >Send TclHttpd-users mailing list submissions to > > tcl...@li... > > > >To subscribe or unsubscribe via the World Wide Web, visit > > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users > >or, via email, send a message with subject or body 'help' to > > tcl...@li... > > > >You can reach the person managing the list at > > tcl...@li... > > > >When replying, please edit your Subject line so it is more specific > >than "Re: Contents of TclHttpd-users digest..." > > > > > >Today's Topics: > > > > 1. Thread package (Ashwini Kumar) > > > >--__--__-- > > > >Message: 1 > >From: "Ashwini Kumar" <ash...@ho...> > >To: tcl...@li... > >Date: Tue, 07 Aug 2001 15:30:30 > >Subject: [Tclhttpd-users] Thread package > > > >Hello, > > > >I am trying to use the thread package extension. I need to spawn a thread > >from a main thread which does some work. However, I am not able to run it > >asyncronously. Also, I need to be able to kill the worker thread from the > >main thread at any time. > > > >Do you have any examples of using the asyncronous worker threads?. My own > >example follows. Will appreciate if you can tell me if there is something > >wrong that I am doing. > > > >Do I need to subsribe to any other list for answers to these types of > >questions? > > > >Thanks, > >Ashwini > > > >############################################################## > >load thread.dll thread > > > >proc hello { fi } { > > > > set pfileID [open $fi w+] > > puts $pfileID "Hello there" > > close $pfileID > > return "Success" > >} > > > >#Create the worker thread > >set cid [thread::create] > > > >#wait for the thread to start > >while {[thread::exists $cid] != 1} { > >} > > > >thread::send -async $cid [hello hi.1] > >thread::send -async $cid [hello hi.2] > > > >thread::send -async $cid {thread::exit} > > > >############################################################### > > > >In the example above, control comes to the "thread::exit" only after both > >the previous lines have been executed. I have even verified this with a > >huge > >for loop inside the proc. > > > > > > > >_________________________________________________________________ > >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > > > > > > > >--__--__-- > > > >_______________________________________________ > >TclHttpd-users mailing list > >Tcl...@li... > >http://lists.sourceforge.net/lists/listinfo/tclhttpd-users > > > > > >End of TclHttpd-users Digest > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > _______________________________________________ > TclHttpd-users mailing list > Tcl...@li... > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users -- Brent Welch Software Architect, Panasas Inc Pioneering Smart and Infinitely Scalable Storage Networks www.panasas.com we...@pa... |
From: Ted D. <tdu...@mu...> - 2001-08-10 19:27:09
|
You can set global variables using Tcl_SetVar and then use Tcl_EvalFile to source the file into your interpreter. Of course, if you were on another platform besides Windows, then things would be waaay easier. -----Original Message----- From: tcl...@li... [mailto:tcl...@li...] Sent: Friday, August 10, 2001 12:08 PM To: tcl...@li... Subject: TclHttpd-users digest, Vol 1 #97 - 1 msg Send TclHttpd-users mailing list submissions to tcl...@li... To subscribe or unsubscribe via the World Wide Web, visit http://lists.sourceforge.net/lists/listinfo/tclhttpd-users or, via email, send a message with subject or body 'help' to tcl...@li... You can reach the person managing the list at tcl...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of TclHttpd-users digest..." Today's Topics: 1. Tcl_EvalFile limitations (Ashwini Kumar) --__--__-- Message: 1 From: "Ashwini Kumar" <ash...@ho...> To: tcl...@li... Date: Thu, 09 Aug 2001 22:13:41 Subject: [Tclhttpd-users] Tcl_EvalFile limitations Hi, Does anybody know how to execute a tcl file with arguments from a C program?. Tcl_EvalFile routine takes only the name of the file as an argument. But what if we want to specify arguments along with the file name?. So the command line would be tclsh83 a.tcl a.gif Tcl_Eval neither interprets source nor tclsh83 as a command Basically, I am trying to execute a script file from a spwaned off thread. I am programming on Windows environment. Thanks in advance, Ashwini >From: tcl...@li... >Reply-To: tcl...@li... >To: tcl...@li... >Subject: TclHttpd-users digest, Vol 1 #96 - 1 msg >Date: Tue, 07 Aug 2001 12:09:37 -0700 > >Send TclHttpd-users mailing list submissions to > tcl...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users >or, via email, send a message with subject or body 'help' to > tcl...@li... > >You can reach the person managing the list at > tcl...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of TclHttpd-users digest..." > > >Today's Topics: > > 1. Thread package (Ashwini Kumar) > >-- __--__-- > >Message: 1 >From: "Ashwini Kumar" <ash...@ho...> >To: tcl...@li... >Date: Tue, 07 Aug 2001 15:30:30 >Subject: [Tclhttpd-users] Thread package > >Hello, > >I am trying to use the thread package extension. I need to spawn a thread >from a main thread which does some work. However, I am not able to run it >asyncronously. Also, I need to be able to kill the worker thread from the >main thread at any time. > >Do you have any examples of using the asyncronous worker threads?. My own >example follows. Will appreciate if you can tell me if there is something >wrong that I am doing. > >Do I need to subsribe to any other list for answers to these types of >questions? > >Thanks, >Ashwini > >############################################################## >load thread.dll thread > >proc hello { fi } { > > set pfileID [open $fi w+] > puts $pfileID "Hello there" > close $pfileID > return "Success" >} > >#Create the worker thread >set cid [thread::create] > >#wait for the thread to start >while {[thread::exists $cid] != 1} { >} > >thread::send -async $cid [hello hi.1] >thread::send -async $cid [hello hi.2] > >thread::send -async $cid {thread::exit} > >############################################################### > >In the example above, control comes to the "thread::exit" only after both >the previous lines have been executed. I have even verified this with a >huge >for loop inside the proc. > > > >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > > >-- __--__-- > >_______________________________________________ >TclHttpd-users mailing list >Tcl...@li... >http://lists.sourceforge.net/lists/listinfo/tclhttpd-users > > >End of TclHttpd-users Digest _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp --__--__-- _______________________________________________ TclHttpd-users mailing list Tcl...@li... http://lists.sourceforge.net/lists/listinfo/tclhttpd-users End of TclHttpd-users Digest |
From: Ashwini K. <ash...@ho...> - 2001-08-09 22:13:46
|
Hi, Does anybody know how to execute a tcl file with arguments from a C program?. Tcl_EvalFile routine takes only the name of the file as an argument. But what if we want to specify arguments along with the file name?. So the command line would be tclsh83 a.tcl a.gif Tcl_Eval neither interprets source nor tclsh83 as a command Basically, I am trying to execute a script file from a spwaned off thread. I am programming on Windows environment. Thanks in advance, Ashwini >From: tcl...@li... >Reply-To: tcl...@li... >To: tcl...@li... >Subject: TclHttpd-users digest, Vol 1 #96 - 1 msg >Date: Tue, 07 Aug 2001 12:09:37 -0700 > >Send TclHttpd-users mailing list submissions to > tcl...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users >or, via email, send a message with subject or body 'help' to > tcl...@li... > >You can reach the person managing the list at > tcl...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of TclHttpd-users digest..." > > >Today's Topics: > > 1. Thread package (Ashwini Kumar) > >--__--__-- > >Message: 1 >From: "Ashwini Kumar" <ash...@ho...> >To: tcl...@li... >Date: Tue, 07 Aug 2001 15:30:30 >Subject: [Tclhttpd-users] Thread package > >Hello, > >I am trying to use the thread package extension. I need to spawn a thread >from a main thread which does some work. However, I am not able to run it >asyncronously. Also, I need to be able to kill the worker thread from the >main thread at any time. > >Do you have any examples of using the asyncronous worker threads?. My own >example follows. Will appreciate if you can tell me if there is something >wrong that I am doing. > >Do I need to subsribe to any other list for answers to these types of >questions? > >Thanks, >Ashwini > >############################################################## >load thread.dll thread > >proc hello { fi } { > > set pfileID [open $fi w+] > puts $pfileID "Hello there" > close $pfileID > return "Success" >} > >#Create the worker thread >set cid [thread::create] > >#wait for the thread to start >while {[thread::exists $cid] != 1} { >} > >thread::send -async $cid [hello hi.1] >thread::send -async $cid [hello hi.2] > >thread::send -async $cid {thread::exit} > >############################################################### > >In the example above, control comes to the "thread::exit" only after both >the previous lines have been executed. I have even verified this with a >huge >for loop inside the proc. > > > >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > > >--__--__-- > >_______________________________________________ >TclHttpd-users mailing list >Tcl...@li... >http://lists.sourceforge.net/lists/listinfo/tclhttpd-users > > >End of TclHttpd-users Digest _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: Ashwini K. <ash...@ho...> - 2001-08-07 15:30:36
|
Hello, I am trying to use the thread package extension. I need to spawn a thread from a main thread which does some work. However, I am not able to run it asyncronously. Also, I need to be able to kill the worker thread from the main thread at any time. Do you have any examples of using the asyncronous worker threads?. My own example follows. Will appreciate if you can tell me if there is something wrong that I am doing. Do I need to subsribe to any other list for answers to these types of questions? Thanks, Ashwini ############################################################## load thread.dll thread proc hello { fi } { set pfileID [open $fi w+] puts $pfileID "Hello there" close $pfileID return "Success" } #Create the worker thread set cid [thread::create] #wait for the thread to start while {[thread::exists $cid] != 1} { } thread::send -async $cid [hello hi.1] thread::send -async $cid [hello hi.2] thread::send -async $cid {thread::exit} ############################################################### In the example above, control comes to the "thread::exit" only after both the previous lines have been executed. I have even verified this with a huge for loop inside the proc. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: Nicolas B. <nic...@ma...> - 2001-08-03 10:10:47
|
Brent Welch wrote: > > I use "self-posting" forms a lot, and I think they will address what > you want. If you look at the tcllib html:: package you'll see support > to create form elements that have default values for them based on > values in the CGI environment. Thanx Brent, Once again, I looked at your book last night, and you cover most of this there... > > So, the basic scenario is that a form always posts to itself. > Then, to get out of that cycle you use a redirect to the next page > in the flow. So, at the beginning of your page (I'm assuming a .tml > template, but it isn't strictly necessary) you decide if all the form > data is OK. If it is, then use Doc_Redirect to trigger a redirect > to the next page. You'll want to save the form data before you do that. Ok, I am already writing the data to a backend. How, if it is possible, to be able to easily come back to the form, with its original values, after the redirect? Imagine someone using a tabnotebook, filling in forms, and bouncing back and forth between forms? I can even take the risk to write(submit) only once, when the data entry person is certain... > If the data is not OK, then you redisplay the page. If it is constructed > with the building blocks out of the html:: package, then the previous > values are automatically filled in. So, if I understand, the form.tml is built with html::textInput, instead of <input type=text>. Any examples of this.... > > You can also avoid the redirect by passing data from page to page > with a bunch of <input type=hidden> fields. Or, if you don't like that, > then you can jam values into the CGI environment with the ncgi:: package > so that they are seen by the afore mentioned html:: package routines. This sounds like it would allow the "tabbing" effect required above, again any simple example? This seems that it would also solve the query issue, where you would like to populate the form with the results of a query? Anyway, thank-you, for the help, and such a great tool. I am always amazed at how much functionality is built into tclhttpd sincerely, nicolas boretos > > >>>Nicolas Boretos said: > > Hi all, > > > > Need some advice here on managing session state. I need todo the > > following > > > > 1. Have user enter data in 5 forms and write them into a db. Domain > > handlers made this easy. I am appending to the tables, so I will need > > some way to have the system keep table relations... > > > > 2. Should a user want to recheck his data, what options are there > > outside of always pushing the browser-s "back" button? The forms are > > quite complex, so reading the db and generating the forms again is kind > > of unrealistic. Sending a list/table of data written is easy, but kind > > of defeats the purpose of the forms. > > > > 3. Cookies are often referred to; any practical examples of tracking > > state using cookies with tclhttpd? > > > > 4. Is there any simple way of using the same forms used to input data, > > to display the results of a query/edit request? I would think using > > Httpd_ReturnFile would work, but how can I populate the form with data; > > basically how to push the data back to the user's form? > > > > Anyway, thank you, > > > > Nicolas Boretos > > > > _______________________________________________ > > TclHttpd-users mailing list > > Tcl...@li... > > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users > > -- > Brent Welch > Software Architect, Panasas Inc > Pioneering Smart and Infinitely Scalable Storage Networks > > www.panasas.com > we...@pa... |
From: Brent W. <we...@pa...> - 2001-08-02 22:05:29
|
I use "self-posting" forms a lot, and I think they will address what you want. If you look at the tcllib html:: package you'll see support to create form elements that have default values for them based on values in the CGI environment. So, the basic scenario is that a form always posts to itself. Then, to get out of that cycle you use a redirect to the next page in the flow. So, at the beginning of your page (I'm assuming a .tml template, but it isn't strictly necessary) you decide if all the form data is OK. If it is, then use Doc_Redirect to trigger a redirect to the next page. You'll want to save the form data before you do that. If the data is not OK, then you redisplay the page. If it is constructed with the building blocks out of the html:: package, then the previous values are automatically filled in. You can also avoid the redirect by passing data from page to page with a bunch of <input type=hidden> fields. Or, if you don't like that, then you can jam values into the CGI environment with the ncgi:: package so that they are seen by the afore mentioned html:: package routines. >>>Nicolas Boretos said: > Hi all, > > Need some advice here on managing session state. I need todo the > following > > 1. Have user enter data in 5 forms and write them into a db. Domain > handlers made this easy. I am appending to the tables, so I will need > some way to have the system keep table relations... > > 2. Should a user want to recheck his data, what options are there > outside of always pushing the browser-s "back" button? The forms are > quite complex, so reading the db and generating the forms again is kind > of unrealistic. Sending a list/table of data written is easy, but kind > of defeats the purpose of the forms. > > 3. Cookies are often referred to; any practical examples of tracking > state using cookies with tclhttpd? > > 4. Is there any simple way of using the same forms used to input data, > to display the results of a query/edit request? I would think using > Httpd_ReturnFile would work, but how can I populate the form with data; > basically how to push the data back to the user's form? > > Anyway, thank you, > > Nicolas Boretos > > _______________________________________________ > TclHttpd-users mailing list > Tcl...@li... > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users -- Brent Welch Software Architect, Panasas Inc Pioneering Smart and Infinitely Scalable Storage Networks www.panasas.com we...@pa... |
From: Nicolas B. <nic...@ma...> - 2001-08-02 09:21:45
|
Hi all, Need some advice here on managing session state. I need todo the following 1. Have user enter data in 5 forms and write them into a db. Domain handlers made this easy. I am appending to the tables, so I will need some way to have the system keep table relations... 2. Should a user want to recheck his data, what options are there outside of always pushing the browser-s "back" button? The forms are quite complex, so reading the db and generating the forms again is kind of unrealistic. Sending a list/table of data written is easy, but kind of defeats the purpose of the forms. 3. Cookies are often referred to; any practical examples of tracking state using cookies with tclhttpd? 4. Is there any simple way of using the same forms used to input data, to display the results of a query/edit request? I would think using Httpd_ReturnFile would work, but how can I populate the form with data; basically how to push the data back to the user's form? Anyway, thank you, Nicolas Boretos |
From: Brent W. <we...@pa...> - 2001-07-31 17:37:12
|
If there is a "tclsh" on vxworks, then tclhttpd may work. >>>"krkrishna" said: > hi, > can i run this webserver on my vxworks target? > please help me regarding this. -- Brent Welch Software Architect, Panasas Inc Pioneering Smart and Infinitely Scalable Storage Networks www.panasas.com we...@pa... |
From: krkrishna <krk...@hy...> - 2001-07-31 10:41:51
|
hi, can i run this webserver on my vxworks target? please help me regarding this. regards=20 krishna |
From: Brent W. <we...@pa...> - 2001-07-31 04:03:25
|
Right - reading the file in in binary mode is the first trick. Then you can use the base64::encode procedure that TclHttpd uses (it is from TclLib) >>>"Ashwini Kumar" said: > Thanks for the info. > > I just used the code from http://mini.net/tcl/588.html (I wonder who the > author is). The way I used this is as follows. > > proc encodeBinaryFile { filename } { > > set file [open $filename] > fconfigure $file -translation binary -encoding binary > set bindata [encode64 [read $file]] > close $file > return $bindata > } > > > It works great!! > Ashwini > > > >From: Colin McCormack <co...@fi...> > >To: "Ashwini Kumar" <ash...@ho...> > >CC: tcl...@li..., > >co...@fi... > >Subject: Re: [Tclhttpd-users] base 64 > >Date: Fri, 27 Jul 2001 23:32:23 +1000 > > > > > Hi, > > > I need to convert gif files to base 64 so that I can attach them to my > >XML > > > documents as multipart MIME. > > > > > > I find many programs which encode strings to base 64 but not many which > >will > > > convert a binary file. > > > > > > I will appreciate if someone could point me to some source which take as > >an > > > input a binary file and outputs file in base 64 format. > > > >This isn't a pure tcl implementation, but > > http://www.oche.de/~akupries/soft/trf/trf_conv.html > >has a base64 encoding, and will handle binary files (I think you would push > >the conversion onto an open file channel, and read from it.) > > > >Colin. > > > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > _______________________________________________ > TclHttpd-users mailing list > Tcl...@li... > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users -- Brent Welch Software Architect, Panasas Inc Pioneering Smart and Infinitely Scalable Storage Networks www.panasas.com we...@pa... |
From: Wolfgang S. K. <wol...@pr...> - 2001-07-30 13:19:31
|
Hi, here are some corrections and proposals for enhancememnt of the tclhttpd = V3.3. I have not had the time to reduce the attachment to a minimum, so I descr= ibe the changes. The other ones are mostly config changes specific to our spe= cial use. - The tar.gz file lacks the directory config that in turn contains the file install-sh, mkinstalldirs, and tcl.m4 (present in release 3.2)= Effect: unable to configure/build out of the box. Workaround: copied from V3.2 - I needed to rebuild the configure-Skript via autoconf to get the stuff = working (SC_XX macros) Workaround: call autoconf in the tclhttpd-3.3 directory - Please find attached a set of patches that contain the following change= s: + New config item 'exactsearch' that controls the behaviour if pathname= completion for images. The existing mechanism does not work for if on= e does not have filename.ext1 (queried by client), but filename.ext2 ex= ists! filename.ext2 is returned, even if the MIME-types for the file-extens= ions are different. (Broken in 3.2 as well) + Some MIME-types (ignore) + More customization (ignore) - You should consider to use the error-page 'error.html' directly from th= e installation dir. Currently, if you configure a new document root, the code assumes a fil= e named 'error.html' underneath the document root. If this file does not = exist, the server hangs and the client browser waits for Godot :-( Using the one from the installation as fallback may be wise. - You should consider splitting the installation in a platform-dependant = (binaries) and platform-depandant part. All Tcl files could make their way into th= e platform independant dir (example: independant-prefix/share/lib), other in prefi= x/lib and prefix/bin. The platform-indepant prefix should equal prefix or can= be specified as a command line option to configure. This last feature would be nice for Tcl/Tk as well ;-) Regards -- = Wolfgang Kechel mailto:wol...@pr... Patzschke + Rasp Software AG http://www.prs.de Bierstadter Stra=DFe 7 Fax: +49-(0)611-1731-31 D-65189 Wiesbaden Phone: +49-(0)611-1731-611/+49-(0)173-9405050 |