The main use is to either start a distributed Erlang node
or to make an ordinary function call. However, it is also
possible to pipe an Erlang module to
Options, which cause
Each option flag is described below with its name, type and meaning.
(optional): Applies the specified function
and returns the result.
(optional): Use this option to specify a certain cookie. If no cookie is specified, the
(optional): Debug mode. This causes all IO to be output
to the file
(optional): Reads a sequence of Erlang expressions, separated
by ',' and ended with a '.', from
(optional): Specifies the name of the hidden node
that
(optional): Reads an Erlang module from
(one of
(one of
(optional): Halts the Erlang node specified with the -n switch. This switch overrides the -s switch.
(optional): Generates a random name of the hidden node
that
(optional): Starts a distributed Erlang node if necessary.
This means that in a sequence of calls, where the '
(one of
(optional): Prints a lot of
(optional): Specifies another name of the Erlang start-up script
to be used. If not specified, the standard
Starts an Erlang node and calls
Terminates an Erlang node by calling
An apply with several arguments.
Evaluates a couple of expressions. The input ends with EOF (Control-D).
Compiles a module and runs it. Again, the input ends with EOF (Control-D). (In the example shown, the output has been formatted afterwards).
P = processes(),
F = fun(X) -> {X,process_info(X,registered_name)} end,
lists:map(F,[],P).
^D
[{,
{registered_name,init}},
{,
{registered_name,erl_prim_loader}},
{,
{registered_name,error_logger}},
{,
{registered_name,application_controller}},
{,
{registered_name,kernel}},
{,
[]},
{,
{registered_name,kernel_sup}},
{,
{registered_name,net_sup}},
{,
{registered_name,net_kernel}},
{,
[]},
{,
{registered_name,global_name_server}},
{,
{registered_name,auth}},
{,
{registered_name,rex}},
{,
[]},
{,
{registered_name,file_server}},
{,
{registered_name,code_server}},
{,
{registered_name,user}},
{,
[]}]
]]>