Native Inspect Manual (H06.03+)

Table Of Contents
Using Tcl Scripting
Native Inspect Manual528122-003
4-2
Pass-Through of Tcl Commands
Pass-Through of Tcl Commands
Some commands, such as set and help, exist in both Native Inspect and Tcl. To use
the Tcl version of such a command, you must “pass through” commands to Tcl by
specifying Tcl on the Native Inspect command line, as follows:
(eInspect 3,301): tcl tcl-command
Getting Help for Tcl Commands
Both Tcl and Native Inspect have a help command. The Native Inspect help command
describes the commands of Native Inspect, while the Tcl help command describes the
commands of Tcl.
Tcl commands are case-sensitive, and online help for them is only available from the
Tcl help command. For example, to display help for the Tcl expr command, enter:
(eInspect 3,301): tcl help expr
An alias for the Tcl help command is tclhelp.
Native Inspect Commands Implemented in Tcl
Native Inspect contains several commands that are implemented in Tcl. You do not
need to use the Tcl pass-through command when using these Native Inspect
commands:
a command, base command, comment command, d command, disassemble
command, da command, env command, eq command, fn command, i command, jb
command, modify command, output command, reg command, tn command, and vq
command
Loading a Tcl Script
To load a Tcl script, use the Tcl source command. For example, to run the script
named myTcl, enter:
(eInspect 3,301): tcl source myTcl
To run the script, enter the name of the Tcl script at the Native Inspect prompt.