$ erl -my_app
This does not launch an application; this form would be used for passing
parameters to an application, for example:
$ erl -my_app param1 123
To start you app, try...
$ erl -s application start my_app
Also, escript might be more suitable for what it appears you are trying to
do.
Cheers,
Dan.
On Mon, Jan 9, 2012 at 7:26 AM, eigenfunction <emeka_1978@REDACTED> wrote:
> Hi everybody,
> i have an application that looks basically like this:
>> init([]) -> ....,
> erlang:open_port({spawn,"cmd /c start www.google.com
> "},[exit_status]),
> {ok,#state{}}.
>>> Here is the thing:
>> A) I start the erlang shell and i start my application:
> $ erl
> 1> application:start(my_app).
> ==> it can start the external process (it opens up the
> webbrowser)
> ==> behaves as expected
>> B) I start the application from the command line:
> $ erl -my_app
> ==> works normally but does not start the external process (it
> does not open the webbrowser)
> ==> does not behave as expected
>> Am i missing something?
> _______________________________________________
> erlang-questions mailing list
>erlang-questions@REDACTED>http://erlang.org/mailman/listinfo/erlang-questions>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120109/222e2954/attachment.htm>