[erlang-questions] shell and escript?

Pablo Vieytes pablo.vb80@REDACTED
Mon Mar 4 15:10:16 CET 2013


Hi,
I added some code to the end of my main function and it works.

shell:start(),
timer:sleep(infinity).

Is there something wrong with that?

Thanks




2013/3/4 Tim Watson <watson.timothy@REDACTED>

> The user_drv:start/0 function is probably worth a look, although you might
> prefer to use shell:start/1 instead. See
> https://github.com/nebularis/systest/blob/release-0.8.4/src/systest_shell.erlfor example.
>
> Cheers,
> Tim
>
> On 4 Mar 2013, at 14:01, Pablo Vieytes wrote:
>
> > Hi everyone,
> > is there any way to use the erlang shell in a escript?
> >
> > I have an escript with a bunch of files in a zip, it works fine but I
> would like to have a "debug" mode whith a shell.
> >
> > Thanks.
> > _______________________________________________
> > 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/20130304/1c3081f7/attachment.htm>


More information about the erlang-questions mailing list