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.


  • 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.


Basic Examples  (1)

Run a Wolfram Language 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:

Introduced in 1988