Reshd stands for remote Erlang shell daemon. It offers a telnet port into an Erlang shell in the Erlang node.
Here is an example session. Italic text is text that has been typed in.
First we need to start the reshd:
109> reshd:start(40044). {ok,40044}
Then we can connect:
unixprompt% telnet localhost 40044 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Eshell V5.0.1 1> io:format("Hello world!~n"). Hello world! ok 2> exit(). ** Terminating shell ** Connection closed by foreign host. unixprompt%
There is also an Emacs package, resh, which provides means for connecting to the Erlang from within Emacs. Type as follows:
Type M-x resh RET
to connect to the erlang node.
Type C-c s
in the resh-buffer to set the current
buffer as the current inferior erlang compilation buffer. Now,
when you type C-c C-k
, the compilation command will
go directly into that erlang node.
Download the latest version: reshd-1.6.tar.gz (40 kB).
Reshd is also available on github
Reshd is written in Erlang, so you need to download and install a copy of Erlang on your machine first.
Tomas Abrahamsson <tab@lysator.liu.se>.
Reshd is relased into the public domain under this license.
io:get_line
and
io:get_chars
.
c_start/1
, cr_start/1
,
cpl_start/1
.
Fixed reference to undefined module in 1.3. Now uses inet:getaddr instead.
Updated to work with Erlang/OTP R12B
Polished for submitting as an Erlang user contribution:
Accepts atoms as prompts.
First version (also announced on the Erlang mailing list)