[erlang-questions] shell and escript?

Fred Hebert <>
Mon Mar 4 15:46:58 CET 2013


Hi,

I recently wrote a blog post about how the Erlang shell works (in the
large sense) and this might be useful when it comes to choosing how to
start things: http://ferd.ca/repl-a-bit-more-and-less-than-that.html
I hope this helps.

Regards,
Fred.

On 03/04, Pablo Vieytes wrote:
> Hi,
> at first glance shell:start/0 works but then I have had some problems, it
> works better with user_drv:start/0.
> 
> Thanks.
> 
> 
> 2013/3/4 Tim Watson <>
> 
> > Hi
> >
> > On 4 Mar 2013, at 14:10, Pablo Vieytes wrote:
> > > 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?
> > >
> >
> > I don't know. It might be fine, but using shell:start/0 didn't work for
> > me. Then again, I am running a bunch of stuff like common-test and that
> > probably complicates matters. If shell:start/0 works for you then great!
> >
> > Cheers,
> > Tim

> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list