[erlang-questions] Issue: erl/yaws init

Ahmed Ali ahmed.nawras@REDACTED
Thu Oct 23 06:43:23 CEST 2008


Thanks all. The issue is clear to me now.

Best regards,

Ahmed

On Wed, Oct 22, 2008 at 9:01 AM, Bengt Kleberg
<bengt.kleberg@REDACTED> wrote:
> 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
>> erlang-questions@REDACTED
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list