<div dir="ltr">Thanks .I read the manual before this mail.But the manul is not very clear. Can you give more details please? Such as why this special {fd,In,Out}  port is needed?<br><br>
<div class="gmail_quote">2008/10/1 Maxim Treskin <span dir="ltr"><<a href="mailto:zerthurd@gmail.com">zerthurd@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">erl -man erlang<br><br>=====<br>open_port(PortName, PortSettings) -> port()<br>
<div>                    PortName = {spawn, Command} | {fd, In, Out}</div>
<div>                       Command = string()</div>
<div>                       In = Out = int()<br>...<br>
<div>                {fd, In, Out}:</div>
<div>                    Allows  an  Erlang  process to access any currently opened file descriptors used by Erlang. The file descriptor In can be</div>
<div>                    used for standard input, and the file descriptor Out for standard output. It is only used  for  various  servers  in  the</div>
<div>                    Erlang operating system (shell and user). Hence, its use is very limited.</div>
<div>=====<br></div></div><br>-- <br>Maxim Treskin<br></div></blockquote></div><br></div>