---
title: "erl init stop"
author: "standalone"
date: "2013-01-10T14:19:24Z"
tags: []
categories: ["编程语言"]
slug: "erl-init-stop"
draft: false
lastmod: "2013-01-10T14:19:24Z"
id: 1767440
url: "https://standalone.iteye.com/blog/1767440"
---

一直疑惑诸如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.