Skip to content

Instantly share code, notes, and snippets.

@ir4y
Created November 6, 2013 05:50
Show Gist options
  • Select an option

  • Save ir4y/7331546 to your computer and use it in GitHub Desktop.

Select an option

Save ir4y/7331546 to your computer and use it in GitHub Desktop.
#http://stackoverflow.com/questions/14078065/how-set-erlang-node-name-when-run-an-erlang-application-by-basho-rebar-from-com
#http://www.erlang.org/doc/man/net_kernel.html
node(). #nonode@nohost
net_kernel:start([rumata, shortnames]).
node(). #'rumata@rumata-osx'
net_kernel:stop().
node(). #nonode@nohost
net_kernel:start(['rumata@myhost', longnames]).
node(). #rumata@myhost
#http://stackoverflow.com/questions/5927401/how-to-parse-config-file-with-erlang
#http://www.erlang.org/doc/man/file.html#consult-1
#f.txt: {person, "kalle", 25}.
# {person, "pelle", 30}.
file:consult("f.txt"). #{ok,[{person,"kalle",25},{person,"pelle",30}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment