[erlang-questions] dynamic node creation?

Steve Kirsch steve.kirsch@REDACTED
Mon May 4 06:27:36 CEST 2009


well, it works as long as epmd is already running on your system. If it
isn't, you'll get:
1> net_kernel:start([myname, shortnames]).

=INFO REPORT==== 3-May-2009::20:41:14 ===
Protocol: "inet_tcp": register error: {{badmatch,{error,econnrefused}},
                                       [{inet_tcp_dist,listen,1},
                                        {net_kernel,start_protos,4},
                                        {net_kernel,start_protos,3},
                                        {net_kernel,init_node,2},
                                        {net_kernel,init,1},
                                        {gen_server,init_it,6},
                                        {proc_lib,init_p_do_apply,3}]}
{error,{shutdown,{child,undefined,net_sup_dynamic,
 
{erl_distribution,start_link,[[myname,shortnames]]},
                        permanent,1000,supervisor,
                        [erl_distribution]}}}
2>


so you need to start epmd, or start another node which is distributed
before you make the call to transform yourself. 

-----Original Message-----
From: mats cronqvist [mailto:masse@REDACTED] 
Sent: Saturday, May 02, 2009 2:38 PM
To: t ty
Cc: saketkunwar; erlang-questions@REDACTED
Subject: Re: [erlang-questions] dynamic node creation?

t ty <tty.erlang@REDACTED> writes:

> net_kernel:start([ss, shortnames]).

  AFAIK, this would turn a non-distributed node into a distributed
  one.

  For starting new nodes, check out the 'slave' module in stdlib.

  mats
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://www.erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list