<div dir="ltr">I faced strange things with different values in TERM environment variable and<br>remote_shell.  First, If I try open a remote shell with a defined terminfo<br>-understood by installed version of ncurses- I get a crash:<br><br>```<br>$ TERM=xterm erl -remsh nodename Erlang R16B03 (erts-5.10.4) [source]<br>[64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false]<br><br>*** ERROR: Shell process terminated! (^G to start new job) ***<br>```<br><br>Which I thought may be because of different versions of running erts (7.0) and<br>that tries to make remote shell (5.10.4),  but I can make a remote shell If I<br>set TERM to something garbage:<br><br>```<br>$ TERM=screen-blah-blah erl -remsh nodename Eshell V5.10.4  (abort with ^G)<br>1> proplists:get_value(max_fds, erlang:system_info(check_io)).<br>1024<br>```<br><br>Using same Erlang version as provided in made release by `relx` and using start<br>scripts,  I can make remote console with or without known terminfo:<br><br>```<br>$ TERM=screen-blah-blah /path/to/rel/bin/start remote_console<br>Eshell V7.0 (abort with ^G)<br>(remsh2a0a97fb-nodename@nodename-1439719103-p4p1:247)1> proplists:get_value(max_fds, erlang:system_info(check_io)).<br>1024<br>```<br><br>And things get funny...<br><br>```<br>$ TERM=xterm /path/to/rel/bin/start remote_console<br>Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe]<br>[kernel-poll:false]<br><br>Eshell V7.0  (abort with ^G)<br>(nodename@nodename-1439719103-p4p1:247)1> proplists:get_value(max_fds, erlang:system_info(check_io)).<br>262144<br>```<br><br>I get different maximum file descriptor limit with different terminfo.  Looks<br>like last one is not really a connected remote shell..<br><br><br></div>