behavior of io:format() in spawn'ed process

Serge Aleynikov serge@REDACTED
Thu Jun 29 16:44:43 CEST 2006

As a continuation of this question - is it possible to redirect that I/O 
to a remote C node?


$ erl -sname t

$ erl_call -sname t@REDACTED -a 'io format [user, "abc\n", []]'

The result of this call is displayed in the shell on t@REDACTED  Is there 
a way using EI to get that output captured by the C program on host2?


Claes Wikstrom wrote:
> HP Wei wrote:
>> I am writing a monitoring module whose partial code is appended
>> at the end of this email.
>> I would like to ask for help in understanding the behavior of
>> io:format() in a spawn'ed process.
> terminal I/O goes back and is produced at the node which originally spawned
> the process. If you want I/O to appear at the node where the
> process is running - use io:format(user, Format, Args).
>                                      ^
>                                      |
>                                         atom there
> /klacke

More information about the erlang-questions mailing list