[erlang-questions] clarify: run_erl and ssh
Bengt Kleberg
bengt.kleberg@REDACTED
Wed Dec 19 08:37:23 CET 2012
Greetings,
How do I get the prompt when pressing "ENTER" when I use "ssh" to start
Erlang with "run_erl"?
I have this script:
#! /bin/sh
run_erl -daemon /tmp/eleberg/ /tmp/eleberg/ "exec erl"
It can be run like this:
sekic1152 [8:24am] [/home/eleberg] -> ./afile
And I get a nice interaction:
sekic1152 [8:26am] [/home/eleberg] -> to_erl /tmp/eleberg/
Attaching to /tmp/eleberg/erlang.pipe.1 (^D to exit)
1> q().
ok
2> [End]
For the second example I use "ssh" and the nice interaction gets worse:
sekic1152 [8:26am] [/home/eleberg] -> ssh sekic1152 ./afile
These computer resources, specifically Internet access and E-mail, are
...
IF YOU ARE NOT AN AUTHORIZED USER, PLEASE EXIT IMMEDIATELY.
sekic1152 [8:26am] [/home/eleberg] ->
sekic1152 [8:26am] [/home/eleberg] -> to_erl /tmp/eleberg/
Attaching to /tmp/eleberg/erlang.pipe.1 (^D to exit)
^R
q().
ok
2> [End]
How can I persuade the prompt (1>) to show up upon "CR" in the second
example?
This is not important, as you can see it is possible to give command in
the Erlang shell. I can even see them, which is nice. But pressing "CR"
does not print the prompt and I would like that.
bengt
More information about the erlang-questions
mailing list