[erlang-questions] Erlang executable that reads command line arguments
Frederic BONFANTI
frederic.bonfanti@REDACTED
Sun Oct 11 09:42:45 CEST 2015
The first time I launched it, it requested me to accept socket monitoring (can’t remember exactly) then I couldn’t reproduce that issue.
Besides this, it should do
Thanks
> On Oct 11, 2015, at 1:52 AM, Sergej Jurečko <sergej.jurecko@REDACTED> wrote:
>
> Use an escript?
>
> http://www.erlang.org/doc/man/escript.html
>
>
> Sergej
>
>
>
>
> On 11/10/15 07:46, "Frederic BONFANTI" <erlang-questions-bounces@REDACTED on behalf of frederic.bonfanti@REDACTED> wrote:
>
>> Hi guys,
>>
>> given a simple Erlang code that consists in one file, let’s say test123.erl , I’d like to
>>
>> 1. use a Makefile to compile test123.erl into test.beam and then generate a distributable version of test123 (executable)
>>
>> 2. figure-out how to parse the command line arguments once this test command is called from regular shell, for example:
>>
>> test123 -A -x 555
>>
>> If there are straightforward examples available, that will do.
>>
>> Thanks in advance
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list