一直疑惑诸如command line
erl -noshell -s Module Function Arguments -s init stop
后面加的init stop是干什么用的,看了stackoverflow上面一个问答清楚了:
[url]http://stackoverflow.com/questions/5269300/run-erlang-application-without-terminal-depending[/url]
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.
erl -noshell -s Module Function Arguments -s init stop
后面加的init stop是干什么用的,看了stackoverflow上面一个问答清楚了:
[url]http://stackoverflow.com/questions/5269300/run-erlang-application-without-terminal-depending[/url]
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.