Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8088143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:00:03+00:00 2026-06-05T19:00:03+00:00

I am trying to implement a really simple example to get a first look

  • 0

I am trying to implement a really simple example to get a first look into Distributed Erlang. So, I start two nodes on the same machine:

erl -sname dilbert
erl -sname dogbert

The task is that dogbert makes dilbert output Hello, World! using a simple fun () -> io:format("Hello, World!") end on node dilbert. I thought this would be easy with dogbert‘s shell:

(dogbert@centraldogma.fubar)1> spawn(dilbert, fun () -> io:format("HELLO!") end).
<0.39.0>

=ERROR REPORT==== 13-Jun-2012::17:49:04 ===
** Can not start erlang:apply,[#Fun<erl_eval.20.82930912>,[]] on dilbert **

In the same shell, using nodes(). outputs []. Well, dogbert obviously doesn’t know about dilbert, but why is that the case? Or, how do I make nodes in distributed erlang get to know each other?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:00:06+00:00Added an answer on June 5, 2026 at 7:00 pm

    There are two problems:

    1. You must set a common cookie for both nodes so they can interact.

      erl -sname dilbert -setcookie pointyhairedboss
      erl -sname dogbert -setcookie pointyhairedboss

    2. You must specify the hostname of the node you want to connect to.
      spawn(‘dogbert@yourhostname’, fun () -> io:format(“HELLO!”) end).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is really simple but driving me nuts. I am trying to implement a
I'm trying to create a really simple Factory Method design pattern example in Java.
I am trying a implement a really simple layout using BorderLayout. var summary =
I've been trying to implement a history plugin called really simple history, and I
this is really two questions, I'll start with the easiest. I get an access
I'm trying to implement a really really simple MembershipProvider for sitecore, but i'm not
While trying to implement an MVC file upload example on Scott Hanselman's blog. I
Iam trying to implement a simple JMS(traditional not using springs) code in eclipse using
I am really stuck trying to implement RIA Services with MVVM and a crud
I'm trying to implement what I think is a fairly simple design. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.