Although WRspice is intended to be an interactive program, batch mode, similar to SPICE2, is supported. If WRspice is invoked with the -b command line option, it will process the input circuit files in batch mode. The files are input on the command line, and if no files are listed, the standard input is read. Most of the control lines recognized by SPICE2 will be handled, including .plot, .print, and .four. These lines are more or less ignored in interactive mode, but provide the traditional SPICE2 behavior in batch mode.
For normal analysis, output is sent to the standard output, in the form of ASCII plots and print output as directed by .plot/.print lines, plus additional information about the run, somewhat similar to SPICE2 but less verbose by default. The batch mode output format and content can be controlled with the option keywords described in 4.10.6. If the input file is a margin or operating range analysis file, a result file will be produced (as in interactive mode), however there will be little or no standard output other than printing from echo commands within the analysis scripts.
If the -r command line option is used (-r filename), a plot data file will be produced. This will also be true if specified with the post option in the circuit description.
Batch node is non-graphical, and plots produced from .plot lines use the line printer format of ancient times. Saving output in a rawfile or CSDF file for later viewing with graphical WRspice or another viewing program is recommended.
The input files provided may have .newjob lines, which logically divide the input into two or more separate circuit decks. Each circuit deck is processed in order. This is one way to run multiple simulations in a single batch job.
There is also a ``server'' mode which is similar to batch mode, which is invoked with the -s command line option. This is intended for use in remote SPICE runs. Input is taken only from the standard input, and output is exclusively to the standard output. The output is either in rawfile or margin analysis format, and inappropriate command line options such as -r, -b are ignored. There is probably no reason for a user to invoke this mode directly.