next up previous contents
Next: Using multiple interfaces Up: Variables Previous: Common idioms   Contents

Command variables

In order to process scripts with many send command efficiently (e.g. in a trace-driven simulation), the command can be stored in a variable. Command variables are set with the syntax:

command $var = command

They are referenced with command $var, e.g.

time 1s command $var

All command that can be used with every can be stored in a variable.

Martin A. Brown 2003-11-06