<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=936385605-08082008>can I open a port so
it communicates via a named pipe or an unnamed pipe other than StdIn and StdOut?
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=936385605-08082008>The documentation
says</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT> </DIV>
<DIV><FONT face="Arial monospaced for SAP" size=2>open_port(PortName,
PortSettings) -> port()</FONT></DIV>
<DIV><FONT face="Arial monospaced for SAP" size=2></FONT> </DIV>
<DIV><FONT face="Arial monospaced for SAP" size=2>PortName = {spawn, Command} |
{fd, In, Out}</FONT></DIV>
<DIV><FONT><FONT face="Arial monospaced for SAP"
size=2></FONT></FONT> </DIV>
<DIV><FONT><FONT face="Arial monospaced for SAP" size=2>{fd, In, Out} <BR>Allows
an Erlang process to access any currently opened file descriptors used by
Erlang. The file descriptor In can be used for standard input, and the file
descriptor Out for standard output. It is only used for various servers in the
Erlang operating system (shell and user). Hence, its use is very
limited.<BR></FONT></FONT></DIV>
<DIV><FONT><FONT face="Arial monospaced for SAP"><SPAN
class=936385605-08082008><FONT face=Arial size=2>But I haven't
found details on {fd, In, Out} and how I could open a new
fd.</FONT></SPAN></DIV></FONT></FONT><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008>Backgroud:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=936385605-08082008>We have
a legacy Fortran program (called Marez) that opens many <FONT
face=Arial size=2><SPAN class=936385605-08082008>files and uses this files as a
database. </SPAN></FONT></SPAN></FONT><FONT face=Arial size=2><SPAN
class=936385605-08082008>I want to use Erlang to replace this bunch of files by
mnesia tables.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=936385605-08082008>My intention is to
open Marez as a port, send the input that it needs via StdIn and get
the answer back from StdOut.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=936385605-08082008>Since I also want to
substitute all file accesses from Marez by mnesia accesses it would be
cool if I could open more pipes than only StdIn, StdOut and StdErr. In this
way I could replace in Marez all OPEN file by OPEN pipe.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=936385605-08082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=936385605-08082008>Otherwise I would
have to multiplex all these accesses to StdIn and StdOut.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV class=Section1>
<P class=MsoNormal align=left><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">mit freundlichen Grüßen / <SPAN
class=SpellE>with</SPAN> <SPAN class=SpellE>kind</SPAN> <SPAN
class=SpellE>regards</SPAN></SPAN></P>
<P class=MsoNormal><FONT face=Arial size=2></FONT> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Silvester
Rößner<BR></SPAN></P>
<DIV><SPAN class=446240916-30012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial
size=2>-------------------------------------------------------------------------------------------------------</FONT></SPAN></DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial size=2>Carl Zeiss Vision
GmbH</FONT></SPAN></DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial size=2>Corporate
Technology</FONT></SPAN></DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Solution <SPAN
class=SpellE>Architect</SPAN> Software <SPAN class=SpellE>Application</SPAN>
<SPAN class=SpellE>Development</SPAN><?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">S i l v e s t e r R ö ß
n e r</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial size=2>phone: +49 7361 591
831</FONT></SPAN></DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial
size=2>fax: +49 7361 591 498</FONT></SPAN></DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial size=2>mailto: </FONT><A
title=blocked::mailto:vorname.name@vision.zeiss.com
href="mailto:silvester.roessner@vision.zeiss.oe"><FONT
title=blocked::mailto:vorname.name@vision.zeiss.com face=Arial size=2><A
href="mailto:silvester.roessner@vision.zeiss.org">silvester.roessner@vision.zeiss.org</FONT></A></A></SPAN></DIV>
<DIV><SPAN class=446240916-30012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=446240916-30012008>
<P><FONT face=Arial size=2>Carl Zeiss Vision GmbH, Turnstr. 27, 73430
Aalen<BR>Geschäftsführer: <SPAN class=176040413-15042008>Dr. Raymund
Heinen, </SPAN><SPAN class=692034509-25032008>Thomas Radke</SPAN><BR>Sitz der
Gesellschaft: 73430 Aalen, Deutschland<BR>Amtsgericht Ulm, HRB 501574,
USt.-IdNr.: DE 237 102 722</FONT></P>
<P></SPAN><SPAN class=446240916-30012008><FONT face=Arial
size=2>-------------------------------------------------------------------------------------------------------</FONT></SPAN></P></DIV></DIV>
<DIV> </DIV><br>
<div class=Section1>
<p class=MsoNormal style='margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
margin-left:0cm;text-autospace:none'><span style='font-size:10.0pt;font-family:
Arial'>This message is intended for a particular addressee only and
may contain business or company secrets. If you have received
this email in error, please contact the sender and delete the
message immediately. Any use of this email, including saving,
publishing, copying, replication or forwarding of the message
or the contents is not permitted.</span></p>
<p class=MsoNormal> </p>
</div>
<br></BODY></HTML>