129
Using Tcl
Comware V7 provides a built-in tool command language (Tcl) interpreter. From user view, you can use
the tclsh command to enter Tcl configuration view to execute the following commands:
• Tcl 8.5 commands.
• Comware commands.
The Tcl configuration view is equivalent to the user view. You can use Comware commands in Tcl
configuration view in the same way they are used in user view. For example, you can perform the
following tasks:
{ Use the system-view command to enter system view to configure features.
{ Use the quit command to return to the upper-level view.
Benefits and restrictions
Tcl provides the following benefits:
• Tcl environment variables can be applied to Comware commands.
• You can enter multiple Comware commands separated by semi-colons to execute the commands in
the order they are entered.
Tcl has the following limitations:
• No online help information is provided for Tcl commands.
• You cannot press Tab to complete an abbreviated Tcl command.
• Successfully executed Tcl commands are not saved to command history buffers.
Entering Tcl configuration view from user view
Task Command
Enter Tcl configuration view from user view. tclsh
Returning from Tcl configuration view to user view
Task Command
Remarks
Return from Tcl configuration view
to user view.
tclquit
You can achieve the same result by executing
the quit command.
Task Command
Remarks
Return from Tcl configuration view
to user view.
tclquit
You can achieve the same result by
executing the quit command.