Re: erl_call -q
Bogdan Andu <[email protected]> Tue, 29 Mar 2022 16:26:37 +0300
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <CAP7yTnymDM_PyzDAmjr6wyvrVxCpsZkb_i7riKs0mqZzycHEaw@mail.gmail.com> |
--00000000000083e62d05db5b61af Content-Type: text/plain; charset="UTF-8" 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] > --00000000000083e62d05db5b61af Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I know erl -eval, but elixir --rpc-eval gives the err= or also, like this:</div><div>--rpc-eval : RPC failed with reason :nodedown= </div><div>while erl -eval is silent about errors like node down which is v= ery important.</div><div><br></div><div>May be a try catch would do the tri= ck but already is too much to pass to eval.<br></div></div><br><div class= =3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Mar 29, 2022= at 3:57 PM Luke Bakken <<a href=3D"mailto:[email protected]">[email protected]= o</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin= :0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"= >Give "-eval" a try instead.<br> <br> On Tue, Mar 29, 2022 at 5:40 AM Bogdan Andu <<a href=3D"mailto:bog495@gm= ail.com" target=3D"_blank">[email protected]</a>> wrote:<br> ><br> > Hi,<br> ><br> > I tried that before like this:<br> > $ erl -setcookie proxy -proto_dist inet_tls -ssl_dist_optfile file_wit= h_pem -name 'stop-node@host' -s rpc call target-node@host init stop= []<br> > Erlang/OTP 24 [erts-12.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [asy= nc-threads:1]<br> </blockquote></div> --00000000000083e62d05db5b61af--