[erlang-questions] R20 escript does not accept "-smp disable"

Mark Geib mark.geib.44@REDACTED
Wed Feb 7 00:33:49 CET 2018


Did the escript command line args change in R20.? I could not find any reference with a quick search.

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.

Argument '-smp disable' not supported. Use "+S 1" instead.
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_ONLINE] [+SP PERCENTAGE_SCHEDULERS:PERCENTAGE_SCHEDULERS_ONLINE] [+T LEVEL] [+V] [+v] [+W<i|w|e>] [+z MISC_OPTION] [args …]

I wrote a trivial escript of my own and sure enough, with R19 it works fine, with R20 the above error.

Here is the escript I am using for testing.

#!/usr/local/Cellar/erlang@REDACTED/19.3.6.4//bin/escript

%%! -smp disable -sname demo -setcookie cookie

-define(ME, filename:basename(escript:script_name())).
-include_lib("kernel/include/file.hrl").

main(Args) ->
    io:format("Args:~s~n~n",
              [Args]),
    halt(0).

Cuttlefish uses {escript_emu_args, "%%! -escript main cuttlefish_escript -smp disable +A 0\n”}. in it’s the rebar.config.

Thanks,
Mark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 528 bytes
Desc: Message signed with OpenPGP
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180206/b584040a/attachment.bin>


More information about the erlang-questions mailing list