[erlang-questions] Escript to run erlang applcation

Eric Merritt <>
Fri Mar 11 16:42:22 CET 2011


Escript doesn't have anything built in to do this for you. However,
assuming it is a single app and its in your path you can just do
application start. That is

application:start(<my app name as atom>).

Of course, that will only start up your application and will fail if
your dependencies aren't started. The only option you really have then
is to call application start on your entire dependency chain and your
application in dependency order. Thats actually not as bad as it
sounds.

Of course after a while you are going to want to start releases via
escript, but thats not really possible at the moment.

Eric

On Thu, Mar 10, 2011 at 11:41 PM, shk <> wrote:
> Hello,
>
> I have erlang *.app and some *.erl files. I compiled it. Hoc can i write
> escript script to run erlang *.app?
>
> Thank you.
>
> --
> View this message in context: http://erlang.2086793.n4.nabble.com/Escript-to-run-erlang-applcation-tp3347510p3347510.html
> Sent from the Erlang Questions mailing list archive at Nabble.com.
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
>
>


More information about the erlang-questions mailing list