First  |  Prev |  Next  |  Last
Pages: 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
Possible bug in Tcl or Windows or Tcl on Windows
Hi, There seems to be a bug in the way numbers are compared in Tcl. Consider the below script for calculating Pythagorean triplets. For hypotenuse upto a value of 100, there should have been 63 unique triplets. On Windows XP the script detects only 62. The script doesn't detect the case where c=99, b=20 ==> a... 9 Sep 2009 20:59
how to spawn and expect multiple processes "in parallel"
Hello, I have a script foobar.tcl on WinXP that uses Expect to spawn a process, interact with it, and log everything using log_file Now I need to extend it, so that it spawns 2 processes, and does the same interaction with both (and logs each to its own log file). This has to be done as if "in parallel" (I wr... 4 Sep 2009 13:11
regexp
if {[regexp {^\s*/[/*]} $line]} { The line above seems to find C style comments. I know that the caret anchors it but am not sure what \s means. thanks ... 4 Sep 2009 01:05
passing variable as default value to procedure parameter
Hi guys, How to use global variable as the default value for procedure parameter. I.e., proc foo {{bar $var}} { puts $bar } set var "hello world!" foo When I do this, stdout prints $var instead of "hello world!" thx Dean ... 8 Sep 2009 13:40
How to detect if event loop is running ?
How can a script tell if the Tcl event loop is running or not ? I want to do a vwait forever but only if there isn't already an event loop running.. /Ashok ... 6 Sep 2009 11:59
disabling/ignoring ctrl+c
Hi all, While running a tcl script in tclsh, I want block keystroke combinatination ctrl+c so that my program can run in uninterrupted environment. Can somebody suggest a solution for this. Regards, uday ... 8 Sep 2009 10:17
server socket and multiple clients
Hello, I would like to know if a Tcl server created with the socket command can handle multiple clients (1000s) or does one need to use threads for this? Thank you ... 3 Sep 2009 07:31
Expect script from stdin (interact not working as expect; eof)
Hi all, I am creating a expect script that logs in and does a su - whereafter I want to be able to interactively use the logged in ssh session. I have been searching to fix this for a long time but without luck: spawn /usr/bin/ssh -o StrictHostKeyChecking=no -l theuser x.x.x.x expect "*?assword:*" {send "the... 3 Sep 2009 07:31
twapi Win32 raw API function for NetUserModalsGet?
I am trying to use twapi to call the NetUserModalsGet network management function on windows. Reference: http://msdn.microsoft.com/en-us/library/aa370656%28VS.85%29.aspx I see that twapi has quite a few if not most of these network management functions exposed but not NetUserModalsGet. Reference: http://twapi.ma... 3 Sep 2009 07:31
BLT
On Aug 31, 3:43 pm, oc_forums <oliviercolin...(a)gmail.com> wrote: Hi Avivi, Generally speaking looking for something in comp.lang.tcl using "search in this group" will search in the 1 or 2 latest pages... Do this for me since weeks, and it is necessary to use the normal google... Seems that comp.lang.t... 3 Sep 2009 07:31
First  |  Prev |  Next  |  Last
Pages: 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90