Running an application from the (unix) command line
Ulf Wiger (AL/EAB)
Tue Jan 24 11:02:04 CET 2006
> > 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:
Then use: erl ... -s myapp start App
More information about the erlang-questions