[erlang-questions] Registered names and pids
Anders Nygren
anders.nygren@REDACTED
Wed May 14 05:24:32 CEST 2008
On Tue, May 13, 2008 at 9:59 PM, Deryk Barker <dbarker@REDACTED> wrote:
> Maybe I shouldn't need to know this, but I can't find any obvious way:
> is it possible, given the name of a registered process, to find its pid:
> a) on the same nod b) on another node?
>
> Merci.
Locally registered name
whereis(Name)
Globally registered name
global:whereis_name(Name)
Locally registered on another node
rpc:call('Node, erlang, whereis,[Name]).
/Anders
>
> --
> |Deryk Barker, Computer Science Dept. | Music does not have to be understood|
> |Camosun College, Victoria, BC, Canada| It has to be listened to. |
> |email: dbarker@REDACTED | |
> |phone: +1 250 370 4452 | Hermann Scherchen. |
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list