how to capture io:format's output using ei?
Ulf Wiger (AL/EAB)
ulf.wiger@REDACTED
Tue Oct 18 17:50:24 CEST 2005
Serge Aleynikov wrote:
>
> When I run a distributed Erlang session below, the output
> gets captured
> correctly:
>
> ~> erl -noshell -sname t -eval \
> 'rpc:call(tt@REDACTED, io, format, ["Test string~n"])' -s init
> stop
> Test string
> ~>
>
> However, using erl_call (written using ei) doesn't display
[...]
>
> ~> ./erl_call -sname tt@REDACTED -a 'io format ["Test
> string~n"]' -r
> ~>
Interestingly, if you remove the "~n", it seems to work.
That is, all of these work on my R10B:
> erl_call -v -sname io@REDACTED -a 'io format [user,"hello\n",[]]'
> erl_call -v -sname io@REDACTED -a 'io format [user,hello,[]]'
> erl_call -v -sname io@REDACTED -a 'io format [hello]'
> erl_call -v -sname io@REDACTED -a 'io format ["hello"]'
but as soon as there's a tilde in there, nothing happens.
/Uffe
More information about the erlang-questions
mailing list