Skip to content

Instantly share code, notes, and snippets.

@fabiotatsuo
Created April 16, 2013 10:24
Show Gist options
  • Save fabiotatsuo/5394878 to your computer and use it in GitHub Desktop.
Save fabiotatsuo/5394878 to your computer and use it in GitHub Desktop.
Erlang command shell
command shell
ctrl-A (^A) cursor begin of the line
crrl-E (^E) cursor end of the line
li press tab... lists:... tab again... suggest function
help ()
q() -- quit - shorthand for init:stop()
ctrl-G (^G) then type h to get help
type k N, N is a job number... terminate that shell and all code running
type i N, stop code withou killing shell
create new shell instances type s
list shell instances type j
connect to them c N
(*) next to some shell.... means that this is the last shell instance you were using
Shell freezes, ctrl-G (^G) type i, press enter, type c, press enter... this will get shell manager, interrupt shell job, and then connect back to it
A sequence of expressions must be terminated with a period followed by whitespace (a line break, a space, and so on); otherwise, it won be executed.
You can separate expressions with commas, but only the result of the last one will be shown (although the others are still executed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment