Error trying tutorial 17

Gunilla Arendt <>
Tue Jun 20 15:41:37 CEST 2006


The error you get {badarith, ...}, means a bad aritmethical expression.
The '-' character in the hostname is interpreted as "minus" (subtraction
operator). Enclose the node name within single quotes instead:

tut17:start_ping('').

/ Gunilla

Ferreira Maurizio wrote:
> I tried tutorial 17 on a single computer, having name ferreira-d
> 
> After having started :
> 
>   erl -sname pong in a dos box
>   erl -sname ping in another dos box
> 
> And having stated the pong process in the pong box
> tut17:start_pong().
> 
> I try to start the ping process in the ping box
> But I receive the following error:
> 
> 
> tut17:start_ping().
> 
> =ERROR REPORT==== 20-Jun-2006::12:33:21 ===
> Error in process <0.38.0> on node '' with exit value:
> {badarith,[{erl_eval,eval_op,3},{erl_eval,expr_list,6},{erl_eval,expr,
> 5},{shell,exprs,6},{shell,eval_loop,3}]}
> 
> ** exited: {badarith,[{erl_eval,eval_op,3},
>                       {erl_eval,expr_list,6},
>                       {erl_eval,expr,5},
>                       {shell,exprs,6},
>                       {shell,eval_loop,3}]} **
> ()3>
> 
> 
> Is something related tho the unusual machine name ? (ferreira-d)
> Thanks
> Maurizio Ferreira.
> 


-- 
_____Gunilla Arendt______________________________________________
EAB/AUL/IO OTP Design
  +46-8-7275730  ecn 851 5730



More information about the erlang-bugs mailing list