Looks to me that you have a misplaced comma after your config string... <br><br>On Wednesday, October 24, 2012 9:02:56 AM UTC-5, Matthieu Vachon wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi All,
<br>
<br>In the config documentation page
<br>(<a href="http://www.erlang.org/doc/man/config.html" target="_blank">http://www.erlang.org/doc/<wbr>man/config.html</a>), it is noted that since
<br>R10B, the syntax of sys.config was extended to allow pointing to other
<br>configuration files.
<br>
<br> [{Application, [{Par, Val}]} | File].
<br>
<br>So, I was wondering if this mechanism is supposed to work when passing a
<br>config file via the command line parameter (i.e. -config):
<br>
<br> erl -boot boot_file -config sys
<br>
<br>I'm asking the question because in fact, I tried and I tried and I tried
<br>without success. My config file looks like this:
<br>
<br> [
<br> {mnesia, [
<br> {dir, "db"}
<br> ]},
<br>
<br> "/home/user/project/sys.user.<wbr>config",
<br> ].
<br>
<br>But anything I put as the File parameter result in an error. I tried
<br>without the .config suffix, with a relative path, at the beginning of
<br>the line, at the end. It always saying it's an invalid application name.
<br>With this kind of error, I fear it works only in conjunction with a full
<br>release and its not meant to work with config file passes as command
<br>line arguments. Is it right?
<br>
<br>Here the full error message:
<br>
<br> could not start kernel pid (application_controller) (invalid config
<br>data: invalid application name: "/home/user/project/sys.user.<wbr>config")
<br>
<br>Regards,
<br>Matt
<br>______________________________<wbr>_________________
<br>erlang-questions mailing list
<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="_gABzQ3Fph0J">erlang-q...@erlang.org</a>
<br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a>
<br></blockquote>