[erlang-questions] application:start() works but -s command line switch crashes

Tobias Schlager Tobias.Schlager@REDACTED
Tue May 13 14:20:55 CEST 2014

Your module doesn't seem to export the function start/0?

Be aware of the fact, that '-s othost' calls 'othost:start()' not 'application:start(othost)'.


Von: erlang-questions-bounces@REDACTED [erlang-questions-bounces@REDACTED]" im Auftrag von "Schneider [schneider@REDACTED]
Gesendet: Dienstag, 13. Mai 2014 14:16
An: erlang-questions@REDACTED
Betreff: [erlang-questions] application:start() works but -s command line switch crashes

Hi list,

Starting my application from the command line with –s gives an error

$ erl -sname rpi2 -pa ebin/ -pa deps/*/ebin/ -s othost
Erlang/OTP 17 [erts-6.0] [source-07b8f44] [async-threads:10] [kernel-poll:false]

{"init terminating in do_boot",{undef,[{othost,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

Starting the application like this works fine:

$ erl -sname rpi2 -pa ebin/ -pa deps/*/ebin/
Erlang/OTP 17 [erts-6.0] [source-07b8f44] [async-threads:10] [kernel-poll:false]

Eshell V6.0  (abort with ^G)
(rpi2@REDACTED)1> application:start(othost).

What is going wrong here?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140513/88eb4e16/attachment.htm>

More information about the erlang-questions mailing list