Re: erl_call -q

Luke Bakken <[email protected]> Tue, 29 Mar 2022 06:27:43 -0700
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CADFEJufpFqo02EfFrvZ7SRgH5zb-W=2jc6LFX4N6xAxW2PvN9Q@mail.gmail.com>
At this point I would put together a small module, and use -s or -eval
to run the code. erlc is right there!

On Tue, Mar 29, 2022 at 6:26 AM Bogdan Andu <[email protected]> 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.
>
> May be a try catch would do the trick but already is too much to pass to eval.
>
> On Tue, Mar 29, 2022 at 3:57 PM Luke Bakken <[email protected]> wrote:
>>
>> Give "-eval" a try instead.
>>
>> On Tue, Mar 29, 2022 at 5:40 AM Bogdan Andu <[email protected]> wrote:
>> >
>> > Hi,
>> >
>> > I tried that before like this:
>> > $ erl -setcookie proxy -proto_dist inet_tls -ssl_dist_optfile file_with_pem -name 'stop-node@host' -s rpc call target-node@host init stop []
>> > Erlang/OTP 24 [erts-12.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]