[erlang-questions] rpc:call without being connected?

Vlad Dumitrescu <>
Mon Sep 10 12:12:40 CEST 2012


Hi,

On Mon, Sep 10, 2012 at 11:56 AM, Zabrane Mickael <> wrote:
> Is there any equivalent way (documented or not) to execute a remote function (like "rpc:call") but
> without being connected to the remote node?

Well, if you're not connected (somehow) to that node, how would you
let it know it has to execute something? So the question becomes, what
kind of alternative connections can there be?

One is a "communication conduit" (i.e. a tcp socket, a unix pipe, even
a file) that both parts can use to communicate. This is basically the
same as having a connection via distribution, except you have to do it
from scratch. Both parts need to have supporting code for this.

Another option that i can think of and that doesn't require the other
node to be aware of us, is to start an erl shell to it (with
-remshell) and feed it the code to be executed. This only works for
things that can be serialized to source code, though.

I can't come up with others.

regards,
Vlad



More information about the erlang-questions mailing list