This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

RunThrough

RunThrough
executes an external command, giving the printed form of expr as input and taking the output, reading it as Mathematica input, and returning the result.
  • RunThrough writes the InputForm of expr on the standard input for command, then reads its standard output and feeds it into Mathematica.
  • RunThrough starts command, gives input to command, then terminates the input.
Run a Mathematica kernel in text mode, having it put a result in a temporary output file:
The result is now in the file:
Delete the temporary file:
Run a Mathematica kernel in text mode, having it put a result in a temporary output file:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
The result is now in the file:
Delete the temporary file:
In[5]:=
Click for copyable input
New in 1