Re: erl in unix pipe?
Anthony Howe <[email protected]> Fri, 21 Jan 2022 09:31:29 -0500
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Organization | SnertSoft |
| Message-ID | <[email protected]> |
On 2022-01-21 09:26, [email protected] wrote: > 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. > 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 [email protected] BarricadeMX & Milters http://snert.com/ http://nanozen.snert.com/ http://snertsoft.com/