is there /dev/null process in Erlang ?

HP Wei <>
Thu Jul 20 19:23:23 CEST 2006


I have a bunch of
   io:format(ios, "~p~n", [Data]).
   ...
   where ios is established by
      register(ios, Pid).
   and Pid is
      either
         Erlang's user process
      or
         {ok, Pid} = file:open("filename", write).

-----------------------------

Question,
   is there a process in erlang that acts like
   a data sinker (receiving and  doing nothing) ?
   [ so that I can direct format(ios...) to it. ]
   [ something like in unix,
        cat some_file > /dev/null. ]

thanks
hp





More information about the erlang-questions mailing list