<div dir="ltr">Non-SMP runtime has been disabled in OTP 20 and will be removed in OTP 21 (summer 2018).<div>Observe here <a href="https://groups.google.com/forum/#!topic/erlang-programming/e8BgIzWxoLo">https://groups.google.com/forum/#!topic/erlang-programming/e8BgIzWxoLo</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-07 0:33 GMT+01:00 Mark Geib <span dir="ltr"><<a href="mailto:mark.geib.44@gmail.com" target="_blank">mark.geib.44@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did the escript command line args change in R20.? I could not find any reference with a quick search.<br>
<br>
I recently upgraded Erlang on my mac, via homebrew to R20. The first time I went to test an application using cuttlefish I received this error.<br>
<br>
Argument '-smp disable' not supported. Use "+S 1" instead.<br>
Usage: erl [-version] [-sname NAME | -name NAME] [-noshell] [-noinput] [-env VAR VALUE] [-compile file ...] [-smp [auto|enable]] [-make] [-man [manopts] MANPAGE] [-x] [-emu_args] [-start_epmd BOOLEAN] [-args_file FILENAME] [+A THREADS] [+a SIZE] [+B[c|d|i]] [+c [BOOLEAN]] [+C MODE] [+h HEAP_SIZE_OPTION] [+K BOOLEAN] [+l] [+M<SUBSWITCH> <ARGUMENT>] [+P MAX_PROCS] [+Q MAX_PORTS] [+R COMPAT_REL] [+r] [+rg READER_GROUPS_LIMIT] [+s SCHEDULER_OPTION] [+S NO_SCHEDULERS:NO_SCHEDULERS_<wbr>ONLINE] [+SP PERCENTAGE_SCHEDULERS:<wbr>PERCENTAGE_SCHEDULERS_ONLINE] [+T LEVEL] [+V] [+v] [+W<i|w|e>] [+z MISC_OPTION] [args …]<br>
<br>
I wrote a trivial escript of my own and sure enough, with R19 it works fine, with R20 the above error.<br>
<br>
Here is the escript I am using for testing.<br>
<br>
#!/usr/local/Cellar/erlang@19/<a href="http://19.3.6.4//bin/escript" rel="noreferrer" target="_blank"><wbr>19.3.6.4//bin/escript</a><br>
<br>
%%! -smp disable -sname demo -setcookie cookie<br>
<br>
-define(ME, filename:basename(escript:<wbr>script_name())).<br>
-include_lib("kernel/include/<wbr>file.hrl").<br>
<br>
main(Args) -><br>
    io:format("Args:~s~n~n",<br>
              [Args]),<br>
    halt(0).<br>
<br>
Cuttlefish uses {escript_emu_args, "%%! -escript main cuttlefish_escript -smp disable +A 0\n”}. in it’s the rebar.config.<br>
<br>
Thanks,<br>
Mark.<br>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>