The easiest way is not to mess with the erlang io subsystem, but use standard ERTS tools. 1 Launch the emulator using stdin / stdout wrapper / logger:
run_erl -daemon /tmp/ /some/log/dir erl
2 Then do:
ssh localhost -tt to_erl /tmp/
- , stdin stdout, /tmp stdin stdout node , /some/log/dir. :)
- stdin stdout. "ssh -tt" .
. "$ ERL_TOP/erts */bin/start" man- "run_erl" "to_erl":
http://www.erlang.org/doc/man/run_erl.html