This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / System Interface / Global Parameters /

$BatchInput

FilledSmallSquare $BatchInput is True if input in the current session is being fed directly to the Mathematica kernel in batch mode.

FilledSmallSquare $BatchInput is True if input is being taken from a file.

FilledSmallSquare $BatchInput can be reset during a Mathematica session.

FilledSmallSquare When $BatchInput is True, Mathematica terminates if it ever receives an interrupt, does not discard input when blank lines are given, and terminates when it receives end-of-file.

FilledSmallSquare See Section 2.14.5.

FilledSmallSquare See also: $IgnoreEOF, $BatchOutput, $Linked, $Notebooks.

FilledSmallSquare New in Version 2.