erl in unix pipe?

Anthony Howe achowe@REDACTED
Fri Jan 21 15:31:29 CET 2022


On 2022-01-21 09:26, 2QdxY4RzWzUUiLuE@REDACTED wrote:
> On 2022-01-21 at 09:19:09 -0500,
> Anthony Howe <achowe@REDACTED> 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.
> 

I've written escripts in the past for command line tools, but in this case I
just want to use one or two lines to query settings without having to write a
full script.

-- 
Anthony C Howe
achowe@REDACTED                                   BarricadeMX & Milters
http://snert.com/    http://nanozen.snert.com/     http://snertsoft.com/


More information about the erlang-questions mailing list