After spending a good while getting rb to work on a remote shell, I would like to get stdio / error logger messages on a remote shell, I have dug around changing group_leaders but it would seem to require changing the group_leader of all the running process, and my experiments have found that to be pretty unstable.
The most straightforward way would be to not to mess with erlang io subsystem, but to use standard ERTS tools. 1 Start emulator with stdin/stdout wrapper/logger:
run_erl -daemon /tmp/ /some/log/dir erl
2 Then do:
ssh localhost -tt to_erl /tmp/
For more hints see "$ERL_TOP/erts*/bin/start" and man page for 'run_erl' and 'to_erl': http://www.erlang.org/doc/man/run_erl.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With