represents input given on the standard input channel to the original operating system command with which the current instantiation of the Wolfram Language was invoked.


$ScriptInputString
represents input given on the standard input channel to the original operating system command with which the current instantiation of the Wolfram Language was invoked.
Details

- If the Wolfram Language kernel is invoked via a wolframscript mechanism, the $ScriptInputString contains all input given on standard input.
- If the Wolfram Language kernel is run in a way other than via a wolframscript mechanism, the $ScriptInputString gives None.
Examples
Basic Examples (1)
$ScriptInputString is set to None in an interactive session:
Find the wolframscript executable:
Set up appropriate arguments for the operating system:
$ScriptInputString is set to an empty string in this case, as standard input is empty:
Related Guides
History
Text
Wolfram Research (2016), $ScriptInputString, Wolfram Language function, https://reference.wolfram.com/language/ref/$ScriptInputString.html.
CMS
Wolfram Language. 2016. "$ScriptInputString." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$ScriptInputString.html.
APA
Wolfram Language. (2016). $ScriptInputString. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$ScriptInputString.html
BibTeX
@misc{reference.wolfram_2025_$scriptinputstring, author="Wolfram Research", title="{$ScriptInputString}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/$ScriptInputString.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_$scriptinputstring, organization={Wolfram Research}, title={$ScriptInputString}, year={2016}, url={https://reference.wolfram.com/language/ref/$ScriptInputString.html}, note=[Accessed: 15-August-2025]}