next up previous contents index
Next: Shell Commands Up: wrsmanual Previous: The WRspice Daemon and   Contents   Index


WRspice Commands

When a line is entered, it is interpreted as one of several things. First, it may be an alias, in which case the line is replaced with the result after alias substitution, and the line is re-parsed. Second, it may be the name of a codeblock, which is a user-defined command obtained from a script file, in which case the codeblock is executed. Third, it may be a pre-defined command, in which case it is executed. Fourth, it may be an assignment statement, which consists of a vector name, an `=' symbol, and an expression, in which case it is executed as if it were preceded by the word ``let''. Fifth, it may be the name of a circuit file, in which case it is loaded as if with a source command, or it may be the name of a command script - WRspice searches the current sourcepath (search path) for the file and executes it when it is found. The effect of this is identical to the effect of ``source file'', except that the variables argc and argv are set. Finally, it may be a UNIX command, in which case if the variable unixcom is set, it is executed as though it were typed to the operating system shell.

The following subsections discuss the built-in commands and variables.



Subsections
next up previous contents index
Next: Shell Commands Up: wrsmanual Previous: The WRspice Daemon and   Contents   Index
Stephen R. Whiteley 2006-10-23