Erlang/OTP BEAM runtime and shell
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
erlerlc <file>.erl
c(<mod>).erl -noshell -eval "<expr>" -s init
stop
escript <file>
erl -sname <name>
erl -pa <dir>
q().Concepts
Start the VM
erlerl -noshellerl -noinputerl -eval "<expr>"
erl -s <mod> <fun> <args>
erl -run <mod> <fun> <args>
erl -pa <dir>
erl -pz <dir>
erl -config <file>
erl -args_file <file>
erl -detachederl +P <n>
erl -versionCompile
erlc <file>.erl
erlc -o <dir> <file>.erl
erlc -I <dir> <file>.erl
erlc -D<name>=<value> <file>.erl
erlc -Werror <file>.erl
erlc -S <file>.erl
erlc -E <file>.erl
erlc +debug_info <file>.erl
In the shell
c(<mod>).l(<mod>).q().b().f().f(<Var>).v(-1).e(-1).h().rl().rr("<file>.hrl").
help().i().observer:start().
Ctrl+GCtrl+Ci / k / j / qDistribution
erl -sname <name>
erl -name <name>@<host>
erl -setcookie <cookie>
erl -remsh <node>
erl -setcookie <node> <cookie>
node().nodes().net_adm:ping(<node>).
rpc:call(<node>, <mod>, <fun>,
[<args>]).
Escript
escript <file>
#!/usr/bin/env escript
%%! -sname <name>
main(Args) ->
halt(<code>)
Rebar3
rebar3 new app <name>
rebar3 compilerebar3 shellrebar3 eunitrebar3 ctrebar3 releaseRecipes
erl -noshell -eval 'io:format("~p~n", [lists:sum([1,2,3])])' -s init stop
erlc hello.erlerl -noshell -pa . -eval 'hello:world()' -s init stop
#!/usr/bin/env escript%%! -noshellmain([Name]) -> io:format("hi ~s~n", [Name]);main(_) -> halt(1).
erl -sname probe -setcookie <cookie> -remsh <name>@<host>



