[erlang-questions] Issue: erl/yaws init

Bengt Kleberg <>
Wed Oct 22 07:01:29 CEST 2008


Greetings,

The flag -s can take <module> <function> <arg1> <arg2> ...
That is a variable amount of arguments.
To handle that, the arguments are assembled into a list before the call.

In your case :
application:start( [my_app] )

This is not the same as
init() ->
    application:start(my_app).


bengt

 On Wed, 2008-10-22 at 01:56 +0400, Ahmed Ali wrote:
> Hi all,
> 
> I don't know if this is a erlang or yaws's issue. The first command
> below doesn't work while the second works.
> 
> > yaws --conf yaws.conf  --id my_app --daemon --pa ebin/ --erlarg -s\ application\ start\ my_app
> > yaws --conf yaws.conf  --id my_app --daemon --pa ebin/ --erlarg -s\ web_utils\ init
> 
> Although funciton web_utils:init/0 looks like below
> 
> init() ->
>     application:start(my_app).
> 
> Did anyone face a similar issue before?
> 
> Best regards,
> 
> Ahmed
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list