<div>Thanks a lot for your suggestion Bengt.</div>
<div>I'll try your suggestion<br><br> </div>
<div><span class="gmail_quote">On 11/15/06, <b class="gmail_sendername">Bengt Kleberg</b> <<a href="mailto:bengt.kleberg@ericsson.com">bengt.kleberg@ericsson.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 2006-11-10 07:35, Surindar Sivanesan wrote:<br>><br>> Dear all,<br>> I would like to trace a process to a file when it starts at the background.
<br>> Which module can help in achieving the above.<br><br>i never saw an answer to this question, so here is my suggestion:<br><br>dbg:tracer( process, fun(P, {fun{ok, Pid}) -> io:fwrite(Pid, "~p", [P]),<br>
{ok, Pid} end}, file:open( "afile", [write] )} )<br><br>the you should be able to do<br>dbg:tp(your_module, []).<br><br>or have a look at the dbg module for better granularity of traceing.<br><br><br>bengt<br>--
<br> EPO guidelines 1978: "If the contribution to the known art resides<br> solely in a computer program then the subject matter is not<br> patentable in whatever manner it may be presented in the claims."
<br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions">
http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></div><br><br clear="all"><br>-- <br>with regards,<br>S.Surindar