{"init terminating in do_boot",{undef,[{rpc,call,[['target-node@host',init,stop,'[]']],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{erpc,call,[[_]],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})
Crash dump is being written to: erl_crash.dump...done
$
But I looked for an erl_call based solution.
The thing is in that way the signature for rpc:call/4 will never be matched because of the way -s flag
packs the function call and parameters.
Basically, it sends all parameters wrapped into a list, but the signature of rpc:call/4 is this:
rpc:call(Node, Module, Function, Args)
and we get this with -s flag:
rpc:call([Node, Module, Function, Args])
And also the empty list argument needed for rpc:call is wrapped in '' like this: '[]'
Normally, erl_call must be able to talk to tls nodes not only with tcp nodes.
I founded a workaround if you are on elixir node:
$ elixir --name stop-node@host --cookie proxy --erl "-proto_dist inet_tls" --rpc-eval target-node@host System.stop
Again, it would be nice if erl would have a switch like --rpc-eval
Thanks,
Bogdan