This module provides functions for starting Erlang slave nodes. All slave nodes that are started by a master terminate automatically when the master terminates. All terminal output produced at the slave is sent back to the master node. File I/O is done through the master.
Slave nodes on other hosts than the current one are started with
the
An alternative to the
-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 host
The name of the started node becomes
The slave node resets its
Argument
As an example, suppose that you want to start a slave node at
host
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).
The function returns
The master node failed to get in contact with the slave node. This can occur in a number of circumstances:
There is no
A node with name
Starts a slave node in the same way as
For a description of arguments and return values, see
Stops (kills) a node.