Running an application from the (unix) command line

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Tue Jan 24 11:02:04 CET 2006

Pupeno wrote:

> > Thus "erl -s application start myapp" will result in a call to 
> > "application:start([myapp])" instead of the desired 
> > "application:start(myapp)".
> This doesn't work, I don't know why but what I see is that my 
> parameters get totally ignored.

It's because the application:start/1 function doesn't expect
the argument to be wrapped inside a list.

You can write your own function that does expect the wrapper,
and simply unwraps it. For example:



start([App]) ->

Then use: erl ... -s myapp start App


More information about the erlang-questions mailing list