[erlang-questions] Escript and spawn

Erik de Castro Lopo <>
Sat Apr 28 10:03:24 CEST 2007


Matthias Lang wrote:

> I've never used Escript before. I don't know if the R11B-2 version
> you're using comes with a manual or not, but R11B-4 does. It's here:
> 
>   http://www.erlang.org/doc/doc-5.5.4/erts-5.5.4/doc/html/escript.html

Ahh, documentation. Thanks Matthias!

>    spawn(fun() -> new_process() end),

Yep, that works for me.

> The erl_eval manpage in R11B-4 claims that receive "cannot be handled
> properly". A basic test of receive, both in escript and using erl_eval
> directly, suggests that it works. Are the problems, or is it just an
> out of date manpage?

I think thats a manpage bug. I've been using receive for TCP/IP
handling in escript programs without any problems.

Cheers,
Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"OS X is great that way.  I put a copy of OS X on my coffee table,
and it hasn't been hacked yet. Yes, I am using it as a server. I
serve several meals on it every week." -- Anthony Minkoff



More information about the erlang-questions mailing list