I'm trying to route a data stream to a
wls Script in a command-line environment. Wolframscript delivers the
$ScriptInputString Symbol for reading
stdin, However, if the input is large, no input appears to be read.
How do I read from standard input for large formats?
Minimal (not working) example:
for i in $(seq 0 $SIZE); do echo $i; done | wolframscript -print -c $ScriptInputString
$SIZE=100000 (one hundred thousand), outputs all integers
$SIZE=1000000 (one million) is nothing.
11.3.0 for Linux x86 (64-bit) (March 7, 2018)