I'm playing with the distributed programming tutorial from the 5.4 documentation, and have run into a problem with node names.
My MacBook's default name (jamess-macbook
) does not play well with Erlang's node-naming scheme, due to the dash:
(salt@jamess-macbook)4> {my_process, pepper@jamess-macbook} ! start
** exception error: bad argument in an arithmetic expression
in operator -/2
called as pepper@jamess - macbook
I'm sure there's an easy way to get around this, short of renaming all the machines I want to run Erlang on, but I can't see it in the documentation.
Any suggestions?