[erlang-questions] How to define a command that will run in a remote shell
Gerhard Lazu
gerhard@REDACTED
Mon Feb 5 09:36:47 CET 2018
When connecting to a remote node via remsh, is it possible to specify a command that will run on the remote node as soon as the shell is active?
Both -run and -eval erl flags are executed in the context of the current node, I am looking for something like -remrun or -remeval, that would execute in the context of the remote shell.
The end-goal is to have a single CLI command, e.g. observe, which enables a user to select any Erlang node that is part of a cluster, and observer_cli:start() [1]. will be invoked on remote shell invocation.
Thank you, Gerhard.
[1] https://github.com/zhongwencool/observer_cli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180205/9efe32b5/attachment.htm>
More information about the erlang-questions
mailing list