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
Starts/calls Erlang.
Each option flag is described below with its name, type, and meaning.
(Optional.) Applies the specified function
and returns the result.
Notice that this flag takes exactly one argument, so quoting
can be necessary to group
(Optional.) Use this option to specify a certain cookie.
If no cookie is specified, the
(Optional.) Debug mode. This causes all I/O to be output
to the
(Optional.) Reads a sequence of Erlang expressions,
separated by comma (,) and ended with a full stop (.), 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 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
'
(One of
(Optional.) Prints a lot of
(Optional.) Specifies another name of the Erlang
startup script to be used. If not specified, the standard
To start an Erlang node and call
To terminate an Erlang node by calling
To apply with many arguments:
To evaluate some expressions (the input ends with EOF (Control-D)):
To compile a module and run it (again, the input ends with EOF (Control-D)):
(In the example, 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}},
{,
[]}]
]]>