Timeout in rpc:multicall()

HP Wei <>
Tue Jun 27 17:55:40 CEST 2006


I knew it must be due to a simple mistake.

I tried it with
Erlang (BEAM) emulator version 5.4.13 [64-bit] [source] [hipe]
and it worked.

[ Old version 5.2 gives the undef message. :)

--hp



On Tue, 27 Jun 2006, HP Wei wrote:

>
> I must have made some simple mistake somewhere.
>
> I tried this:
>
> rpc:multicall([node()], os, cmd, ["pgrep beam"]).
> {["7589\n"],[]}
>
>
> But, when I added Timeout = 1000,
>
> rpc:multicall([node()], os, cmd, ["pgrep beam"], 1000).
> ** exited: {undef,[{rpc,multicall,[[],os,cmd,["pgrep
> beam"],1000]},
>                    {erl_eval,expr,3},
>                    {erl_eval,exprs,4},
>                    {shell,eval_loop,2}]} **
>
> any pointer?
> thanks
> HP
>
>



More information about the erlang-questions mailing list