For my application I have 2 applications: a slave and a master. They reside on different nodes. Master node is always up and slave applications (and nodes) can go offline and back online. And during slave application startup I need to register in master application and for that I need master node to be connected to the node where slave application runs. So I tried to do this with 
<br>erl -eval "nte-kernel:connect_node(master_node@master_host),aplication:start(slave_app)."<br>And It looks like master-node does not get connected when slave application start and I get an error :( It look like the handshake is done asynchronously to the net_kernel:connect_node/1.
<br>I can solve this by pasting timer:sleep/1 between the calls but it seems to me a bit ugly.<br>Is there some way to ensure that the needed node is already connected and is accesible?<br><br>Best regards,<br>Kirill.<br>