=== remote box (32 bits)
$ ERL_EPMD_PORT=5999 iex --erl '-kernel inet_dist_listen_min 5990' --erl '-kernel inet_dist_listen_max 5998' --name
bo...@10.83.206.154 --cookie BULBA
Erlang/OTP 18 [erts-7.1] [source] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (1.1.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(
bo...@10.83.206.154)1> :erlang.get_cookie
:BULBA
iex(
bo...@10.83.206.154)2>
=== local box (64 bits)
$ ERL_EPMD_PORT=5999 iex --name
bo...@10.154.79.54 --remsh
bo...@10.83.206.154 --cookie BULBA
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]
*** ERROR: Shell process terminated! (^G to start new job) ***
User switch command
--> j
--> r '
bo...@10.83.206.154' 'Elixir.IEx'
--> j
2* {'
bo...@10.83.206.154','Elixir.IEx',start,[]}
--> c
Interactive Elixir (1.1.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(
bo...@10.83.206.154)1>
nil
iex(
bo...@10.83.206.154)2> Node.list
[:"
bo...@10.154.79.54"]
iex(
bo...@10.83.206.154)3>
### echoed arguments just before exec in exlixir script
### erl -pa /usr/local/stow/elixir-master/lib/elixir/bin/../lib/eex/ebin /usr/local/stow/elixir-master/lib/elixir/bin/../lib/elixir/ebin /usr/local/stow/elixir-master/lib/elixir/bin/../lib/ex_unit/ebin /usr/local/stow/elixir-master/lib/elixir/bin/../lib/iex/ebin /usr/local/stow/elixir-master/lib/elixir/bin/../lib/logger/ebin /usr/local/stow/elixir-master/lib/elixir/bin/../lib/mix/ebin -elixir ansi_enabled true -user Elixir.IEx.CLI -name
bo...@10.154.79.54 -setcookie BULBA -extra --no-halt --erl -user Elixir.IEx.CLI +iex --name
bo...@10.154.79.54 --remsh
bo...@10.83.206.154 --cookie BULBA