Console ouput

Vladimir Sekissov svg@REDACTED
Wed Oct 8 19:50:17 CEST 2003

Good day,

erlang> If process P executes group_leader(GP, self(), all console ouput will be sent to process GP?
erlang> If not, how can I send all console ouput of a process to another process.

Yes, it's so. `io' functions use process_info(self(), group_leader) to find
process which implements input-output protocol and send messages to

In this way you can start service on remote node with rpc, change its
group leader and receive it's output locally.

Best Regards,
Vladimir Sekissov

More information about the erlang-questions mailing list