-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
62 lines (48 loc) · 1.52 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Reshd
=====
Description
-----------
Reshd stands for remote Erlang shell daemon. It offers a telnet port
into an Erlang shell in the Erlang node.
Example session.
----------------
First we need to start the reshd in the erlang node:
109> reshd:start(40044).
{ok,40044}
Then we can connect to this node:
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:
Connecting:
Type M-x resh RET to connect to the erlang node.
Compilation buffer:
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.
Caveats
* There is no tab completion and parentesis blinking like in the
ordinary Erlang shell. However, if you use resh from within Emacs,
to connect to the Erlang node, all your line editing wishes will
be fullfilled.
* There is no authorization procedure, and the connection is not
encrypted.
* There are no privileges. Any function in any module is callable for
anyone.
Author
------
Tomas Abrahamsson <tab@lysator.liu.se>.
Homepage
--------
http://www.lysator.liu.se/~tab/erlang/reshd/