Technical Note: Pipe or Redirect Output Data from Console Mode

Audience: Advanced Programmers and Users

OS:

Windows, Linux, or macOS

Application:

For users who want to pipe or redirect data from Thermo‑Calc running a macro in Console Mode.

For example, you can start the application with the Thermo‑Calc.bat file and the entire application closes when you enter the EXIT command in the Console prompt.

Command examples:

Windows

Thermo‑Calc.bat macro.tcm > output.log

Linux

./Thermo-Calc.sh batch macro.tcm > output.log

macOS

./Thermo-Calc.command batch macro.tcm > output.log

Command line definitions

>

Redirection command. The arrow indicates the flow of data. For example in ./Thermo-Calc.sh macro.tcm > output.log, the contents of macro.tcm is used as input to the Thermo-Calc.sh script file and the resulting output (standard out) is then written to output.log instead of to the screen.