RunThrough
✖
RunThrough["command",expr]
executes an external command, giving the printed form of expr as input and taking the output, reading it as Wolfram Language input, and returning the result.
Details

- RunThrough writes the InputForm of expr on the standard input for command, then reads its standard output and feeds it into the Wolfram Language.
- RunThrough starts command, gives input to command, then terminates the input.
Examples
Basic Examples (1)Summary of the most common use cases
Run a Wolfram Language kernel in text mode, having it put a result in a temporary output file:
In[1]:=1

✖
https://wolfram.com/xid/0b8dtu7mpm-dt9mj2
In[2]:=2

✖
https://wolfram.com/xid/0b8dtu7mpm-evte3s
In[3]:=3

✖
https://wolfram.com/xid/0b8dtu7mpm-md8p2m
The result is now in the file:
In[4]:=4

✖
https://wolfram.com/xid/0b8dtu7mpm-jvdah
In[5]:=5

✖
https://wolfram.com/xid/0b8dtu7mpm-d90vbh
Wolfram Research (1988), RunThrough, Wolfram Language function, https://reference.wolfram.com/language/ref/RunThrough.html.
✖
Wolfram Research (1988), RunThrough, Wolfram Language function, https://reference.wolfram.com/language/ref/RunThrough.html.
Text
Wolfram Research (1988), RunThrough, Wolfram Language function, https://reference.wolfram.com/language/ref/RunThrough.html.
✖
Wolfram Research (1988), RunThrough, Wolfram Language function, https://reference.wolfram.com/language/ref/RunThrough.html.
CMS
Wolfram Language. 1988. "RunThrough." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RunThrough.html.
✖
Wolfram Language. 1988. "RunThrough." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RunThrough.html.
APA
Wolfram Language. (1988). RunThrough. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RunThrough.html
✖
Wolfram Language. (1988). RunThrough. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RunThrough.html
BibTeX
✖
@misc{reference.wolfram_2025_runthrough, author="Wolfram Research", title="{RunThrough}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/RunThrough.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_runthrough, organization={Wolfram Research}, title={RunThrough}, year={1988}, url={https://reference.wolfram.com/language/ref/RunThrough.html}, note=[Accessed: 29-March-2025
]}