erl init stop

一直疑惑诸如command line

erl -noshell -s Module Function Arguments -s init stop

后面加的init stop是干什么用的,看了stackoverflow上面一个问答清楚了:

http://stackoverflow.com/questions/5269300/run-erlang-application-without-terminal-depending


One useful variation is to also call the stop/0 function of the init module so that the Erlang environment will stop when it has finished running your function.

你可能感兴趣的:(erlang)