Top "Tcl" questions

Tool Command Language was invented by John Ousterhout as a way to make it easy to write little languages for configuring EDA tools, but it has grown far beyond those humble beginnings to become a general scripting language with built-in asynchronous I/O and Unicode strings while supporting paradigms such as object-oriented programming and coroutines.

Fullpath of current TCL script

Is there a possibility to get the full path of the currently executing TCL script? In PHP it would be: __…

tcl
What is the difference between spawn and exec?

I'm learning to write a TCL (expect) scripts and I notice that some examples show to use spawn, while others …

scripting exec tcl expect spawn
Tcl.h: no such file or directory

I'm trying to port some code over from a Solaris box onto a Linux (specifically Redhat) box. Code compiled without …

c++ linux tcl
tcl pause & waiting for key pressed to continue

I'm looking for a way in tcl to pause the script (for example after some outputs with "puts") and wait …

key tcl pressed
how to use sed from a tcl file

I'm trying to use the Unix "sed" command form within a tcl file, like this: (to change multiple spaces to …

unix sed exec tcl
How to wait for a process to complete using tcl-expect

I am writing a script using expect in which I have to rlogin to some host & after that I …

shell tcl expect
tcl - how to find the path of package loaded?

In tcl how does one find out the path of the package loaded? % tclsh % package require csv I want to …

tcl packages
Tcl/Tk examples?

Tcl/Tk is a simple way to script small GUIs. Can anyone give a nice example with a button and …

user-interface scripting tcl tk
How do I convert integer to string with leading zeros in Tcl?

I'm learning Tcl. In Perl I can do this: $ perl -e 'for ($i = 0; $i < 5; $i++) { printf("name%03d\n", $…

tcl
how to clean up the previous expect_buf in an expect script

I've written a expect function to get the output of a command and my code is like below proc do_…

tcl expect