Reputation: 1148
I want to detach shell from erlang process without closing process. Does exist function like halt() or q() but for detaching shell? I tried to use Ctrl+D but it doesn't work, i use ssh maybe problem in that
--------Update --------------
I run my rebar3 release with command "bin/timeio start", sometimes i need to execute commands in that process from shell then I connecting to that process with rebar3 release command "bin/timeio attach" (it is simple erlang shell, I assume) but i can't detach from process
Upvotes: 2
Views: 818
Reputation: 4733
CTRL-D should get you out and keep the app running. when you "attach" you are doing the same thing as running to_erl. To exit in from this you type control-D.,
bin ⚑ ◒ → ./otto attach master ✗ 83d
Attaching to /tmp/erl_pipes/[email protected]/erlang.pipe.1 (^D to exit)
([email protected])1> [Quit]
bin ⚑ ◒ → ./otto attach master ✗ 83d
Attaching to /tmp/erl_pipes/[email protected]/erlang.pipe.1 (^D to exit)
([email protected])1> [Quit]
bin ⚑ ◒ → ./otto attach master ✗ 83d
Attaching to /tmp/erl_pipes/[email protected]/erlang.pipe.1 (^D to exit)
([email protected])1> [Quit]
bin ⚑ ◒ → master ✗ 83d
Upvotes: 3