一直疑惑诸如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.
本文解释了在ERLANG应用启动过程中,initstop的作用,包括如何通过调用init模块的stop函数使ERLANG环境在运行完用户自定义函数后停止。
2848

被折叠的 条评论
为什么被折叠?



