Re: erl in unix pipe?
[email protected] Fri, 21 Jan 2022 08:26:53 -0600
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <YerCrVdAfksHXfO0@scrozzle> |
On 2022-01-21 at 09:19:09 -0500, Anthony Howe <[email protected]> wrote: > How does one pipe Erlang statements into erl and pipe the output? > > Wishes Erlang (erl) behaved more like unix tools. Try writing an escript: https://www.erlang.org/doc/man/escript.html https://erlang.org/documentation/doc-5.7.4/erts-5.7.4/doc/html/escript.html rebar3 supports escripts, too.