Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

This feature is not supported on the Wolfram Cloud.

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.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Run a Wolfram Language 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
Introduced in 1988