$BatchOutput
✖
$BatchOutput
is True if output in the current session is being sent in batch mode, suitable for reading by other programs.
Details

- 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.
Examples
Basic Examples (2)Summary of the most common use cases
In an interactive session, $BatchOutput is False:

https://wolfram.com/xid/0dc467fwoewi-d9rh8f

Run a standalone Wolfram Language kernel with an input file:

https://wolfram.com/xid/0dc467fwoewi-exopde

https://wolfram.com/xid/0dc467fwoewi-dt9mj2


https://wolfram.com/xid/0dc467fwoewi-c3zs0b

Put commands in a file, in this case to evaluate $BatchOutput:

https://wolfram.com/xid/0dc467fwoewi-cv0cpe


https://wolfram.com/xid/0dc467fwoewi-fqsh8y
Run the command. The session terminates at the end of the file:

https://wolfram.com/xid/0dc467fwoewi-y1h5v

The output file contains the value of $BatchOutput:

https://wolfram.com/xid/0dc467fwoewi-g221kr

https://wolfram.com/xid/0dc467fwoewi-h4s8dg
Wolfram Research (1991), $BatchOutput, Wolfram Language function, https://reference.wolfram.com/language/ref/$BatchOutput.html.
Text
Wolfram Research (1991), $BatchOutput, Wolfram Language function, https://reference.wolfram.com/language/ref/$BatchOutput.html.
Wolfram Research (1991), $BatchOutput, Wolfram Language function, https://reference.wolfram.com/language/ref/$BatchOutput.html.
CMS
Wolfram Language. 1991. "$BatchOutput." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$BatchOutput.html.
Wolfram Language. 1991. "$BatchOutput." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$BatchOutput.html.
APA
Wolfram Language. (1991). $BatchOutput. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$BatchOutput.html
Wolfram Language. (1991). $BatchOutput. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$BatchOutput.html
BibTeX
@misc{reference.wolfram_2025_$batchoutput, author="Wolfram Research", title="{$BatchOutput}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/$BatchOutput.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_$batchoutput, organization={Wolfram Research}, title={$BatchOutput}, year={1991}, url={https://reference.wolfram.com/language/ref/$BatchOutput.html}, note=[Accessed: 25-March-2025
]}