I want to be able to have two Erlang shells to talk. I’m running on OS X.
I tried the tut17 example here.
I’ve also tried:
$ erl -sname foo
and then in a new Terminal:
$ erl -sname bar
(bar@elife)1> net_adm:ping(foo@elife).
pang
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s kind of broken on the mac. By default, the mac can’t resolve its own shortname. Your host’s name is really probably “elife.local”.
If you start erl with -name FQDN, then the pings will work.
ie: you would start it with
this probably could be fixed by making the mac capable of resolving it’s own short name
Here’s example output from my mac. When I do -sname I get the same result as you.
The first node:
The other node: