Re: erl_call -q

Leo Liu <[email protected]> Tue, 29 Mar 2022 22:38:27 +0800
Newsgroups gmane.comp.lang.erlang.general
Message-ID <[email protected]>
On 2022-03-29 16:26 +0300, Bogdan Andu wrote:
> I know erl -eval, but elixir --rpc-eval gives the error also, like this:
> --rpc-eval : RPC failed with reason :nodedown
> while erl -eval is silent about errors like node down which is very
> important.

I was able to get back: {badrpc,nodedown}

erl -name t@host -noinput -eval "io:format(\"~p~n\", [rpc:call('somenode@host', math, sin, [1])]), init:stop()"

If erl_call is based on erl_interface (C-node) then supporting TLS may
be harder because it may have to depend on OpenSSL to handle TLS.

Cheers,
Leo