O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The interp Command

The interp command is used to create and manipulate interpreters. The interpreter being created is called a slave, and the interpreter that creates it is called the master. The master has complete control over the slave. The interp command is summarized in Table 19-1.

Table 19-1. The interp command.
interp aliases slaveLists aliases that are defined in slave.
interp alias slave cmd1Returns the target command and arguments for the alias cmd1 in slave.
interp alias slave cmd1 master cmd2 arg ... Defines cmd1 in slave that is an alias to cmd2 in master with additional args.
interp create ?-safe? slaveCreates an interpreter named slave.
interp delete slaveDestroys interpreter slave.
interp eval slave cmd args ...Evaluates cmd and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required