[erlang-questions] remsh

Jon Watte jwatte@REDACTED
Thu Jul 14 03:23:41 CEST 2011

If I understand it correctly, "remsh" specifies to create an interactive
shell conneted to the remote node, but a command-line argument is evaluated
using the local node.
Try evaluating it as a rpc:call expression instead? You won't need a -remsh
at all then, instead passing the node argument to the rpc call.



Americans might object: there is no way we would sacrifice our living
standards for the benefit of people in the rest of the world. Nevertheless,
whether we get there willingly or not, we shall soon have lower consumption
rates, because our present rates are unsustainable.

On Tue, Jul 12, 2011 at 9:06 AM, Carlo Bertoldi

> Hello list,
>  I'm trying to connect to a remote node and execute a function.
> If I do it the manual way, it works:
> erl -sname foo -remsh prova@REDACTED
> 1> probe_db_manager:cleanup().
> true
> But if I try to do it entirely from the cli it gets angry:
> erl -sname foo -remsh prova@REDACTED -run probe_db_manager cleanup
> {"init terminating in do_boot",{noproc,{gen_server,**
> call,[{global,probe_db_**manager},cleanup]}}}
> probe_db_manager is a gen_server process.
> I also tried this: erl -sname foo -remsh prova@REDACTED -run global
> whereis_name probe_db_manager
> and it returns nothing.
> Thanks,
>  Carlo
> ______________________________**_________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110713/56c361f7/attachment.htm>

More information about the erlang-questions mailing list