About the CLI and Tcl
The CLI is built in version 8.0 of Tcl, so TotalView CLI commands are built into Tcl. The CLI supports all libraries and operations that run using version 8.0 of Tcl.
Integrating CLI commands into Tcl makes them intrinsic Tcl commands. You can enter and execute all CLI commands in exactly the same way as you enter and execute built-in Tcl commands. As CLI commands are also Tcl commands, you can embed Tcl primitives and functions in CLI commands, and embed CLI commands in sequences of Tcl commands.
For example, you can create a Tcl list that contains a list of threads, use Tcl commands to manipulate that list, and then use a CLI command that operates on the elements of this list. You can also create a Tcl function that dynamically builds the arguments that a process uses when it begins executing.