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


RunThrough["command", expr]
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, then 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:
Click for copyable input
Click for copyable input
Click for copyable input
The result is now in the file:
Delete the temporary file:
Click for copyable input
New in 1