[erlang-questions] Passing emulator command line flags to escript

Maxim Treskin zerthurd@REDACTED
Sun Feb 6 12:45:12 CET 2011


Hi Alexey

You can use commented out with '%%!' line of parameters:

#!/usr/bin/escript
%%! +K true +A 20


On 6 February 2011 14:09, Alexey Romanov <alexey.v.romanov@REDACTED> wrote:

> On Sun, Feb 6, 2011 at 5:48 AM, Anthony Shipman <als@REDACTED> wrote:
> > On Sat, 5 Feb 2011 08:45:37 pm Alexey Romanov wrote:
> >> According to http://www.erlang.org/doc/man/escript.html, it doesn't
> >> seem possible to start the same script with different emulator
> >> arguments without editing the script. Is this so? It would seem to
> >> make some sense for escript to support such flags in the same way as
> >> erl does...
> >>
> >> Yours, Alexey Romanov
> >>
> >> ________________________________________________________________
> >> erlang-questions (at) erlang.org mailing list.
> >> See http://www.erlang.org/faq.html
> >> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
> >
> > You can use the ERL_AFLAGS environment variable.
>
> Is doesn't only work for erl? Thanks!
>
> Yours, Alexey Romanov
>
>
>
> > --
> > Anthony Shipman                    Mamas don't let your babies
> > als@REDACTED                   grow up to be outsourced.
> >
> > ________________________________________________________________
> > erlang-questions (at) erlang.org mailing list.
> > See http://www.erlang.org/faq.html
> > To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
> >
> >
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


-- 
Maxim Treskin


More information about the erlang-questions mailing list