I am working on a decentralized Erlang application. I am currently working on a single PC and creating multiple nodes by initializing erl
with the -sname
See mine answer to question Erlang : RPC to a node with output on that node for some details how to achieve output to different places. Which is not mentioned, you can run remote shell even in running shell. Just press Ctrl+G
(^G
hint on startup) and than you have help under h
(press h
and than Enter
).
Example: Assume you have running erlang node by erl -sname foo
. Than:
$ erl -sname bar
Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.7.5 (abort with ^G)
(bar@hynek-notebook)1>
User switch command
--> r 'foo@hynek-notebook'
--> j
1 {shell,start,[init]}
2* {'foo@hynek-notebook',shell,start,[]}
--> h
c [nn] - connect to job
i [nn] - interrupt job
k [nn] - kill job
j - list all jobs
s [shell] - start local shell
r [node [shell]] - start remote shell
q - quit erlang
? | h - this message
--> c
Eshell V5.7.5 (abort with ^G)
(foo@hynek-notebook)1>