[erlang-questions] logging out of shell without shutting down VM

tyler gillies tjgillies@REDACTED
Wed May 5 09:37:50 CEST 2010


using run_erl and to_erl, thanks

On Wed, May 5, 2010 at 12:17 AM, Håkan Huss <huss01@REDACTED> wrote:
> What you can do is to start an Erlang node which provides a remote
> shell to an existing Erlang node. This shell can then be stopped
> without affecting the original node. The easiest way of doing this is
> by using the -remsh option of erl.
>
> Example:
>
> Start the erlang node which you want to have running:
>
>> erl -sname server -setcookie testcookie -noshell
> ...
> (server@REDACTED)1>
>
>
> Elsewhere
>
>> erl -sname shell -remsh server@REDACTED -setcookie testcookie
> ...
> (server@REDACTED)1> ^G
> User switch command
>  --> q
>
> And the server node should still be running.
>
> For more advanced usage, you might want to look into run_erl and to_erl.
>
> Regards,
> /Håkan Huss
>
> On Wed, May 5, 2010 at 04:54, tyler gillies <tjgillies@REDACTED> wrote:
>> I googled for awhile on this but all the examples i found to exit out
>> of shell also shut down the VM
>>
>> --
>> Everyone Loves Tea
>> http://www.everyonelovestea.com
>>
>> ________________________________________________________________
>> erlang-questions (at) erlang.org mailing list.
>> See http://www.erlang.org/faq.html
>> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>>
>>
>



-- 
Everyone Loves Tea
http://www.everyonelovestea.com


More information about the erlang-questions mailing list