<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2713.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanx, any way!!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>Piotr ;-)</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=fredrik.linder@cellpoint.com 
  href="mailto:fredrik.linder@cellpoint.com">Fredrik Linder</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=piotr.daruk@panasonic.com.pl 
  href="mailto:piotr.daruk@panasonic.com.pl">Piotr Daruk</A> ; <A 
  title=erlang-questions@erlang.org 
  href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 25, 2002 2:12 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: Erlang echo server with 
  eLite?</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=364444811-25072002>Yes, 
  there seems to be an error in eLink and unfortunately I cannot help you with 
  that, sorry.</SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
  class=364444811-25072002></SPAN></FONT> </DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
  class=364444811-25072002>There went nothing. :-)</SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
  class=364444811-25072002></SPAN></FONT> </DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
  class=364444811-25072002>/Fredrik</SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
  class=364444811-25072002></SPAN></FONT> </DIV>
  <BLOCKQUOTE dir=ltr 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
    size=2>-----Original Message-----<BR><B>From:</B> Piotr Daruk 
    [mailto:piotr.daruk@panasonic.com.pl]<BR><B>Sent:</B> den 25 juli 2002 
    12:53<BR><B>To:</B> Fredrik Linder; <A 
    href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A><BR><B>Subject:</B> 
    Re: Erlang echo server with eLite?<BR><BR></DIV></FONT>
    <DIV>Hi Fredrik!</DIV>
    <DIV> </DIV>
    <DIV>    First of all thanx for such quick answer! Please 
    note that I don't want to use erlang environment to run my programmes. I 
    want to compile them and move to another Linux machine. That is why I'm 
    using "aLike 2.0" compiler.  Both programmes can be compiled without 
    any problem. Than I start ./echo and ./client. The client can send only 
    Integers. But when the client tries to send a message that is: echosrv ! 
    {ClientPid, N} error occurs: <BR>{badarg,[{client,main,1}]}. So I comment 
    this line (%%%) and as it is expected every thing works correctly. It means 
    the client tries to receive message (see attach) which is the next thing it 
    does. That is why I assume that echosrv ! {ClientPid, N} is wrong order. I 
    wrote before about little differences between progs. run on erlang 
    environment and progs. intended to be compiled and run on Linux.</DIV>
    <DIV> </DIV>
    <DIV>Best regards. <BR>Piotr Daruk / PPS<BR>BS Technical Support Team<BR>tel 
    +48 22 338 12 13, fax +48 22 338 11 00<BR>komertel +48 39123173<BR>komertel 
    fax +48 39122215<BR><A 
    href="http://www.panasonic.com.pl">www.panasonic.com.pl</A></DIV>
    <BLOCKQUOTE dir=ltr 
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
      <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
      <DIV 
      style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
      <A title=fredrik.linder@cellpoint.com 
      href="mailto:fredrik.linder@cellpoint.com">Fredrik Linder</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>To:</B> <A 
      title=piotr.daruk@panasonic.com.pl 
      href="mailto:piotr.daruk@panasonic.com.pl">Piotr Daruk</A> ; <A 
      title=erlang-questions@erlang.org 
      href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A> 
      </DIV>
      <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 25, 2002 11:53 
      AM</DIV>
      <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: Erlang echo server with 
      eLite?</DIV>
      <DIV><BR></DIV>
      <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
      class=503443009-25072002>Hi Piotr</SPAN></FONT></DIV>
      <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
      class=503443009-25072002></SPAN></FONT> </DIV>
      <DIV><FONT face="Arial CE" color=#0000ff size=2><SPAN 
      class=503443009-25072002>Perhaps there are others who can help you better 
      than I, but here goes nothing.</SPAN></FONT></DIV>
      <DIV><FONT face="Arial CE" color=#0000ff size=2><SPAN 
      class=503443009-25072002></SPAN></FONT> </DIV>
      <DIV><FONT face="Arial CE" color=#0000ff size=2><SPAN 
      class=503443009-25072002>Using the !-operator one can communicate 
      between erlang processes on differnet erlang nodes, which can be located 
      on different hosts. So, I guess that's a yes to your question. 
      However, in order to do so must all involved erlang nodes have the same 
      cookie (at the time of the message sending) and must also have networking 
      turned on (see doc for erl: <A 
      href="http://www.erlang.se/doc/doc-5.1/erts-5.1/doc/html/erl.html">http://www.erlang.se/doc/doc-5.1/erts-5.1/doc/html/erl.html</A>, 
      -name or -sname option to erl).</SPAN></FONT></DIV>
      <DIV> </DIV>
      <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
      class=503443009-25072002>What kind of error are you having with "Srv ! 
      {self(), Msg}" ? This statement adds the erlang term "{self(), Msg}" to 
      the mailbox of the Srv process, which can be read by having the Srv 
      process execute a receive-statement (which reads one message from the 
      mailbox).</SPAN></FONT></DIV>
      <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
      class=503443009-25072002></SPAN></FONT> </DIV>
      <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
      class=503443009-25072002>Best Regards</SPAN></FONT></DIV>
      <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
      class=503443009-25072002>/Fredrik</SPAN></FONT></DIV>
      <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
      class=503443009-25072002></SPAN></FONT> </DIV>
      <BLOCKQUOTE 
      style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
        <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
        size=2>-----Original Message-----<BR><B>From:</B> 
        owner-erlang-questions@erlang.org 
        [mailto:owner-erlang-questions@erlang.org]<B>On Behalf Of </B>Piotr 
        Daruk<BR><B>Sent:</B> den 25 juli 2002 10:29<BR><B>To:</B> 
        erlang-questions@erlang.org<BR><B>Subject:</B> Erlang echo server with 
        eLite?<BR><BR></DIV></FONT>
        <DIV><FONT face=Arial size=2>Halo!</FONT></DIV>
        <DIV> </DIV>
        <DIV><FONT face=Arial size=2>    Despite the fact I'm 
        working for Panasonic Poland, I'm also a student of Warsaw University of 
        Computer Science Dept. I'm now to write a program using functional 
        language. I have chosen Erlang and decided to write an echo server. Yet, 
        I would like to compile that to executable files either server and 
        client. I'm using Linux Mandreak 8.1 and eLite 2.0 that contains a 
        compiler. The problem is that the error occurs when I'm trying to do 
        "Srv ! {self(), Msg}". I mean it compiles but doesn’t work! I have 
        already got know that there is difference when I'm writing for eLite. 
        For example I must do erlang:halt(). insted of halt(). What should I do? 
        <BR>    Also, dose "Srv ! {self(), Msg}" messaging work 
        as pipe in Linux? Can I communicate to another process from other 
        terminal on the same machine?</FONT></DIV>
        <DIV> </DIV>
        <DIV><FONT face=Arial size=2>    I'm waiting for any 
        help! Thanx!!!!!</FONT></DIV>
        <DIV> </DIV>
        <DIV><FONT face=Arial size=2>Best regards.<BR>Piotr 
        Daruk<BR></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>