<div dir="ltr"><div>You are trying to use `name-of-config.sml` as an erlang term. It isn't valid because it is not a valid erlang term since it has a . in it. You can wrap it in quotes to make it a string. Do note that variable expansion in the shell may affect you, so we wrap it in single quotes to avoid variable expansion inside. Example:</div><div><br></div><div>[jlouis@lady-of-pain ~]$ erl -kernel config '"name-of-config.xml"'</div><div>Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]</div><div><br></div><div>Eshell V9.0  (abort with ^G)</div><div>1> application:get_env(kernel, config).</div><div>{ok,"name-of-config.xml"}</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, May 27, 2017 at 1:17 PM Oliver Korpilla <<a href="mailto:Oliver.Korpilla@gmx.de">Oliver.Korpilla@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I have a vm.args file and I try to do the following:<br>
<br>
-my_app config name-of-config.xml<br>
<br>
where my_app is indeed the name of the application.<br>
<br>
But I get:<br>
<br>
{"init terminating in do_boot",{error,'Bad environment variable: "name-of-config.xml"  Application: my_app'}}<br>
<br>
I get this also if I write:<br>
<br>
-my_app config 'name-of-config.xml'<br>
-my_app config "name-of-config.xml"<br>
<br>
I just want to pass a few configuration parameters in but it does not seem to work.<br>
<br>
Thank you,<br>
Oliver<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>