title: How to spawn process with arguments from erlang shell
body: <p>I do not know what overload of <code>spawn</code> to use when launching a process from the erlang shell , since i need to pass arguments.</p>
  
  <pre><code>A=spawn(
      fun(TID)-&gt; 
             receive {FROM,MSG}-&gt;
                    FROM ! {self(),MSG}
             after 0 -&gt;
                    TID !{self(),timeouted}
             end
     end,
     TID
    ).
  </code></pre>
  
  <p>There is no overload for just the <code>function</code> and arguments.
  What is the module name when launching from shell ?</p>
  
  <p>I have also tried:</p>
  
  <pre><code>A=spawn(?MODULE,fun()-&gt;....,TID).
  </code></pre>
  
  <p><strong>P.S</strong>
  In my case as you can see i need to provide arguments to the <code>spawn</code> method , while running it directly from the erlang shell.</p>