Erlang is more than the standard library and virtual machine. As you 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.
run_erl expects a pipe name, the log directory, and the command to execute. Remember the log directory must be created before you invoke run_erl, otherwise it will silently fail. Let’s give run_erl a try:
|||$ mkdir ./log|
|||$ run_erl ./loop ./log "elixir -e 'Enum.map Stream.interval(1000), ...|