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 nodes on the host on which it is running.
The master node must be alive.
Starts a slave node on the host
The name of the started node will be
The slave node resets its
The
As an example, suppose that we 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 master node failed to get in contact with the slave node. This can happen in a number of circumstances:
There is no
A node with the name
Starts a slave node in the same way as
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