Erlang detach shell from node / close shell without killing node

I feel that I am missing something stupid, but I looked and could not find the answer to my question.

Suppose I have a release of an application that I built using rebar and I ran it la

rel/my_app/bin/my_app start 

I let him go about his business for a long time, and then I want to connect the console to check things, so I do

 rel/my_app/bin/my_app attach 

and get a shell. I cheat, and then when I finished, I want to exit the shell, but leave the application running. If I execute ^G q or q(). It resets the entire application.

I also played with launching the application with +Bi , so that it would not allow someone to accidentally close it, but how can I get out of the attached shell?

+8
erlang rebar
source share
3 answers

I donโ€™t use a reinforcement box, I never understood what problem it should solve, but I assume that when you "join" you do the same as to_erl . To exit it, you type control-D (EOF).

+11
source share

CTRL-D should bring you out and support the application.

+3
source share

If this is a regular remote shell, press Ctrl-C twice to do the trick.

-4
source share

All Articles