How to receive stdio and error_logger messages on a remote shell

Having done a good job of rb to work with the remote shell, I would like to get stdio / error error messages on the remote shell, I dug around changing the group_leaders, but it seems I will need to change the group_leader of all and my experiments have found this to be rather unstable.

+5
source share
1 answer

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

+5

All Articles