GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • WOLFRAM
  • Products
  • AI AccessUse with Mathematica and Wolfram|One
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App
  • Wolfram|Alpha Website
  • Wolfram|Alpha APIs
  • Wolfram AI Ecosystem

This view

  • Original page
  • New address

GeezerVison is showing reference.wolfram.com — $ScriptInputString—Wolfram Documentation

$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
Details and Options Details and Options
Examples  
Basic Examples  
See Also
Related Guides
History
Cite this Page

$ScriptInputString

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

Wolfram Language code: $ScriptInputString

Find the wolframscript executable:

Wolfram Language code: wolframscript = "!\"" <> FileNameJoin[{$LaunchDirectory, "wolframscript"}] <> "\"";

Set up appropriate arguments for the operating system:

Wolfram Language code: args = If[$OperatingSystem == "Windows", " -code $ScriptInputString", " -code '$ScriptInputString'"];

$ScriptInputString is set to an empty string in this case, as standard input is empty:

Wolfram Language code: Import[wolframscript <> args, "Text"]

See Also

$CommandLine  $ScriptCommandLine  ReadString

Programs: WolframScript

Related Guides

    ▪
  • Standalone Wolfram Language Kernels

History

Introduced in 2016 (11.0)

Wolfram Research (2016), $ScriptInputString, Wolfram Language function, https://reference.wolfram.com/language/ref/$ScriptInputString.html.

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_2026_$scriptinputstring, author="Wolfram Research", title="{$ScriptInputString}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/$ScriptInputString.html}", note=[Accessed: 12-November-2026]}

BibLaTeX

@online{reference.wolfram_2026_$scriptinputstring, organization={Wolfram Research}, title={$ScriptInputString}, year={2016}, url={https://reference.wolfram.com/language/ref/$ScriptInputString.html}, note=[Accessed: 12-November-2026]}

Top
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.