<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
span.E-mailStijl17
{font-family:"Calibri","sans-serif";
color:windowtext}
@page WordSection1
{margin:70.85pt 70.85pt 70.85pt 70.85pt}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" lang="NL" link="blue" vlink="purple">
<div style="direction: ltr;font-family: Arial;color: #000000;font-size: 10pt;">Your module doesn't seem to export the function start/0?<br>
<br>
Be aware of the fact, that <span lang="EN-GB">'-s othost' calls 'othost:start()' not 'application:start(othost)'.<br>
<br>
Regards<br>
Tobias<br>
</span>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="2"><span style="font-family:Arial"></span><br style="font-family:Arial">
</font></div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF728628"><font color="#000000" face="Tahoma" size="2"><b>Von:</b> erlang-questions-bounces@erlang.org [erlang-questions-bounces@erlang.org]" im Auftrag von "Schneider [schneider@xs4all.nl]<br>
<b>Gesendet:</b> Dienstag, 13. Mai 2014 14:16<br>
<b>An:</b> erlang-questions@erlang.org<br>
<b>Betreff:</b> [erlang-questions] application:start() works but -s command line switch crashes<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB">Hi list,</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Starting my application from the command line with –s gives an error
</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">$ erl -sname rpi2 -pa ebin/ -pa deps/*/ebin/ -s othost</span></p>
<p class="MsoNormal"><span lang="EN-GB">Erlang/OTP 17 [erts-6.0] [source-07b8f44] [async-threads:10] [kernel-poll:false]</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">{"init terminating in do_boot",{undef,[{othost,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Crash dump was written to: erl_crash.dump</span></p>
<p class="MsoNormal"><span lang="EN-GB">init terminating in do_boot ()</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Starting the application like this works fine:</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="DE">$ erl -sname rpi2 -pa ebin/ -pa deps/*/ebin/</span></p>
<p class="MsoNormal"><span lang="EN-GB">Erlang/OTP 17 [erts-6.0] [source-07b8f44] [async-threads:10] [kernel-poll:false]</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Eshell V6.0 (abort with ^G)</span></p>
<p class="MsoNormal"><span lang="EN-GB">(rpi2@rpi2)1> application:start(othost).</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">What is going wrong here?</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Thanks</span></p>
<p class="MsoNormal"><span lang="EN-GB">Frans</span></p>
</div>
</div>
</div>
</div>
</body>
</html>