The run_erl and heartool

Learn and practice Erlang's production tools, run_erl and heart, in this lesson.

Erlang is more than the standard library and virtual machine. As we might expect after thirty years of history, it ships with many tools for successfully running Erlang in production. Two of those tools are run_erl and heart.

Managing shared I/O

run_erl tool helps you manage the standard input and output of a program. The Unix tool redirects all output to log files. For those interested, there’s a similar Windows tool named start_erl.

The run_erl tool expects a pipe name, the log directory, and the command to execute.

Remember the log directory must be created before we invoke run_erl. Otherwise, it will silently fail.

We can run run_erl like this:

Get hands-on with 1200+ tech skills courses.