<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks for info. I will go back to R19 until cuttlefish is updated.<div class=""><br class=""></div><div class="">Mark.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 6, 2018, at 6:40 PM, Dmytro Lytovchenko <<a href="mailto:dmytro.lytovchenko@gmail.com" class="">dmytro.lytovchenko@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Non-SMP runtime has been disabled in OTP 20 and will be removed in OTP 21 (summer 2018).<div class="">Observe here <a href="https://groups.google.com/forum/#!topic/erlang-programming/e8BgIzWxoLo" class="">https://groups.google.com/forum/#!topic/erlang-programming/e8BgIzWxoLo</a></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2018-02-07 0:33 GMT+01:00 Mark Geib <span dir="ltr" class=""><<a href="mailto:mark.geib.44@gmail.com" target="_blank" class="">mark.geib.44@gmail.com</a>></span>:<br class=""><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 class="">
<br class="">
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 class="">
<br class="">
Argument '-smp disable' not supported. Use "+S 1" instead.<br class="">
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 class="">ONLINE] [+SP PERCENTAGE_SCHEDULERS:<wbr class="">PERCENTAGE_SCHEDULERS_ONLINE] [+T LEVEL] [+V] [+v] [+W<i|w|e>] [+z MISC_OPTION] [args …]<br class="">
<br class="">
I wrote a trivial escript of my own and sure enough, with R19 it works fine, with R20 the above error.<br class="">
<br class="">
Here is the escript I am using for testing.<br class="">
<br class="">
#!/usr/local/Cellar/erlang@19/<a href="http://19.3.6.4//bin/escript" rel="noreferrer" target="_blank" class=""><wbr class="">19.3.6.4//bin/escript</a><br class="">
<br class="">
%%! -smp disable -sname demo -setcookie cookie<br class="">
<br class="">
-define(ME, filename:basename(escript:<wbr class="">script_name())).<br class="">
-include_lib("kernel/include/<wbr class="">file.hrl").<br class="">
<br class="">
main(Args) -><br class="">
    io:format("Args:~s~n~n",<br class="">
              [Args]),<br class="">
    halt(0).<br class="">
<br class="">
Cuttlefish uses {escript_emu_args, "%%! -escript main cuttlefish_escript -smp disable +A 0\n”}. in it’s the rebar.config.<br class="">
<br class="">
Thanks,<br class="">
Mark.<br class="">
<br class="">______________________________<wbr class="">_________________<br class="">
erlang-questions mailing list<br class="">
<a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank" class="">http://erlang.org/mailman/<wbr class="">listinfo/erlang-questions</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>