From 68d53c01b0b8e9a007a6a30158c19e34b2d2a34e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= This module provides functions for starting Erlang slave nodes.
- All slave nodes which are started by a master will terminate
- automatically when the master terminates. All TTY output produced
- at the slave will be sent back to the master node. File I/O is
- done via the master.
Slave nodes on other hosts than the current one are started with
- the program
An alternative to the
The slave node should use the same file system at the master. At - least, Erlang/OTP should be installed in the same place on both - computers and the same version of Erlang should be used.
-Currently, a node running on Windows NT can only start slave
+ the command line to
+
+-rsh Program+ +
The slave node is to use the same file system at the master. At + least, Erlang/OTP is to be installed in the same place on both + computers and the same version of Erlang is to be used.
+ +A node running on Windows can only start slave nodes on the host on which it is running.
+The master node must be alive.
+Calls
+% erl -name abc -s slave pseudo klacke@super x --+
Starts a number of pseudo servers. A pseudo server is a + server with a registered name that does nothing + but pass on all message to the real server that executes at a + master node. A pseudo server is an intermediary that only has + the same registered name as the real server.
+For example, if you have started a slave node
+rpc:call(N, slave, pseudo, [node(), [pxw_server]]).
+ Runs a pseudo server. This function never returns any value
+ and the process that executes the function receives
+ messages. All messages received are simply passed on to
+
Starts a slave node on the host
Starts a slave node on host
The name of the started node will be
The name of the started node becomes
+
The slave node resets its
The
As an example, suppose that we want to start a slave node at
- host
Argument
As an example, suppose that you want to start a slave node at
+ host
directory
the Mnesia directory should be set to
the unix
The following code is executed to achieve this:
E = " -env DISPLAY " ++ net_adm:localhost() ++ ":0 ",
Arg = "-mnesia_dir " ++ M ++ " -pa " ++ Dir ++ E,
slave:start(H, Name, Arg).
- If successful, the function returns
The function returns
The master node failed to get in contact with the slave - node. This can happen in a number of circumstances:
+ node. This can occur in a number of circumstances:A node with the name
A node with name
Starts a slave node in the same way as
See
For a description of arguments and return values, see
+
Stops (kills) a node.
Calls
-% erl -name abc -s slave pseudo klacke@super x ---
Starts a number of pseudo servers. A pseudo server is a - server with a registered name which does absolutely nothing - but pass on all message to the real server which executes at a - master node. A pseudo server is an intermediary which only has - the same registered name as the real server.
-For example, if we have started a slave node
-rpc:call(N, slave, pseudo, [node(), [pxw_server]]).
- Runs a pseudo server. This function never returns any value
- and the process which executes the function will receive
- messages. All messages received will simply be passed on to
-