BUILT-IN WOLFRAM LANGUAGE SYMBOL
is True if output in the current session is being sent in batch mode, suitable for reading by other programs.
- The initial value of $BatchOutput is typically determined by a command‐line option when the Wolfram System session is started.
- $BatchOutput cannot be reset during a Wolfram System session.
- When $BatchOutput is set to True, the Wolfram Language generates all output in InputForm, with the PageWidth option effectively set to Infinity, does not give In and Out labels, and does not give any banner when it starts up.
In an interactive session, $BatchOutput is False:
Run a standalone Wolfram Language kernel with an input file:
Put commands in a file, in this case to evaluate $BatchOutput:
Run the command. The session terminates at the end of the file:
The output file contains the value of $BatchOutput:
Delete the temporary files: