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 884401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:44:40+00:00 2026-05-15T12:44:40+00:00

What is the best practice to accessing a single running mnesia node from another

  • 0

What is the best practice to accessing a single running mnesia node from another Erlang shell to only view data in the tables?

I tried opening two shells and pointing them to the same mnesia directory location which I realized was a very bad idea after finding this in the documentation.

-mnesia dir Directory. The name of the directory where all Mnesia data is stored. The name of the directory must be unique for the current node. Two nodes may, under no circumstances, share the same Mnesia directory. The results are totally unpredictable.

  • 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-05-15T12:44:40+00:00Added an answer on May 15, 2026 at 12:44 pm

    I think that easiest way is joining to remote shell. Just start erl with -remsh Node parameter

    $ erl -sname foo
    Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
    
    Eshell V5.7.5  (abort with ^G)
    (foo@hynek-notebook)1> 
    

    Another terminal:

    $ erl -sname bar -remsh 'foo@hynek-notebook'
    Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
    
    Eshell V5.7.5  (abort with ^G)
    (foo@hynek-notebook)1> 
    

    Another option is use powerful job control capability of erl (Press ^G)

    $ erl -sname bar
    Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
    
    Eshell V5.7.5  (abort with ^G)
    (bar@hynek-notebook)1> 
    User switch command
     --> h
      c [nn]            - connect to job
      i [nn]            - interrupt job
      k [nn]            - kill job
      j                 - list all jobs
      s [shell]         - start local shell
      r [node [shell]]  - start remote shell
      q        - quit erlang
      ? | h             - this message
     --> r 'foo@hynek-notebook'
     --> j
       1  {shell,start,[init]}
       2* {'foo@hynek-notebook',shell,start,[]}
     --> c 
    Eshell V5.7.5  (abort with ^G)
    (foo@hynek-notebook)1> 
    User switch command
     --> j
       1  {shell,start,[init]}
       2* {'foo@hynek-notebook',shell,start,[]}
     --> c 1
    
    (bar@hynek-notebook)1>
    

    Note that you have to press Enter to show shell prompt if you are switching back to existing one.

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

Sidebar

Ask A Question

Stats

  • Questions 527k
  • Answers 527k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This is a rough translation for illustration purposes: private static… May 16, 2026 at 10:51 pm
  • Editorial Team
    Editorial Team added an answer which version of the virtualbox are you using, is the… May 16, 2026 at 10:51 pm
  • Editorial Team
    Editorial Team added an answer Looking at this as a problem of simply removing duplicates… May 16, 2026 at 10:51 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

One of the best practice is accessing data via stored procedures. I understand why
Is there a best practice for accessing C++ native COM functions to interop from
Curious what the best practice is for returning errors to a view from a
I'm trying to decide on the best strategy for accessing the database. I understand
Best practice to throw the exception if no entry found in the db? //
Current best practice is to use Environment.NewLine in your code to, well, start a
Is there a best practice / recommendation when I want to use a variable
What is the best practice for initializing an ArrayList in Java? If I initialize
Looking for a best-practice advice: Let's suppose I have a Account object with limit
As a best practice for front-end developers, is it bad to use the control

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.