$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:
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