[erlang-bugs] erl -s <module> crashes

Vlad Dumitrescu <>
Wed May 29 10:51:35 CEST 2013


This part of the error message

On Wed, May 29, 2013 at 3:30 AM, Andrew Pennebaker <
> wrote:

> ,{undef,[{hello,start,[],[]}

tells you that the system tried to execute hello:start(), which is the
behaviour when only specifying the module name after -s

>From the docs:

-s Mod [Func [Arg1, Arg2, ...]](init flag)

Makes init call the specified function. Func defaults to start. If no
arguments are provided, the function is assumed to be of arity 0. Otherwise
it is assumed to be of arity 1, taking the list [Arg1,Arg2,...] as
argument. All arguments are passed as atoms. See

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20130529/9b44a108/attachment.html>

More information about the erlang-bugs mailing list