Debugging inter-node spawning...

Lennart Öhman <>
Wed May 1 17:56:16 CEST 2002


Hi,

I see one and can think of also one other problem in your
example.

1) Have you set the cookies?
   Try erlang:set_cookie(node(),myfavoritecookie).
   on both nodes.

2) > ()2> spawn(echosvr,io,format,["echo"]).
   echosvr is not a complete node name. Try the atom ''
   instead.

Happy programming!

/Lennart


Harley Gorrell wrote:
> 
>    Humm... I know this must be covered somewhere but I cant
> seem to find it in my book ('concurrent programming in
> erlang') or on the web.  Spawning on the node works just
> fine.  What should I look at to figure out what is wrong?
> 
>    Here is a summary of what I think should work, but does not.
> 
> Window1 ----------
> 
> $erl -sname echosvr
> Erlang (BEAM) emulator version 5.0.2.4 [source]
> 
> Eshell V5.0.2.4  (abort with ^G)
> ()1>
> 
> Window2 ----------
> 
> $erl -sname echoclient
> Erlang (BEAM) emulator version 5.0.2.4 [source]
> 
> Eshell V5.0.2.4  (abort with ^G)
> ()1> nodes().
> []
> ()2> spawn(echosvr,io,format,["echo"]).
> <0.36.0>
> 
> =ERROR REPORT==== 30-Apr-2002::23:38:44 ===
> ** Can not start io:format,[[101,99,104,111]] on echosvr **
> ()3> spawn_link(io,format,["echo"]).
> echo<0.38.0>
> 
> --------------------
> 
> So what have I missed?,
> harley.

-- 
-------------------------------------------------------------
Lennart Ohman                   phone   : +46-8-587 623 27
Sjoland & Thyselius Telecom AB  cellular: +46-70-552 6735
Sehlstedtsgatan 6               fax     : +46-8-667 8230
SE-115 28 STOCKHOLM, SWEDEN     email   : 



More information about the erlang-questions mailing list