如何从erlang进程中分离shell?

时间:2017-03-29 09:02:17

标签: erlang rebar3

我想在不关闭进程的情况下从erlang进程中分离shell。是否存在函数如halt()或q()但是用于分离shell?我尝试使用Ctrl + D,但它不起作用,我使用ssh可能是问题

--------更新--------------

我使用命令“bin / timeio start”运行我的rebar3版本,有时我需要从shell执行该进程中的命令然后我用rebar3发布命令“bin / timeio attach”连接到该进程(这是简单的erlang shell ,我认为)但我不能脱离过程

1 个答案:

答案 0 :(得分:3)

CTRL-D应该让你出去并保持应用程序运行。当你"附加"你正在做与运行to_erl相同的事情。要从此处退出,请键入control-D。,

 bin ⚑ ◒  → ./otto attach                                                                                                                                           master ✗ 83d
Attaching to /tmp/erl_pipes/otto@127.0.0.1/erlang.pipe.1 (^D to exit)

(otto@127.0.0.1)1> [Quit]
 bin ⚑ ◒  → ./otto attach                                                                                                                                           master ✗ 83d
Attaching to /tmp/erl_pipes/otto@127.0.0.1/erlang.pipe.1 (^D to exit)

(otto@127.0.0.1)1> [Quit]
 bin ⚑ ◒  → ./otto attach                                                                                                                                           master ✗ 83d
Attaching to /tmp/erl_pipes/otto@127.0.0.1/erlang.pipe.1 (^D to exit)

(otto@127.0.0.1)1> [Quit]
 bin ⚑ ◒  →                                                                                                                                                         master ✗ 83d