HOW TO DISPLAY ALL REGISTERED PROCESS IN ERLANG?

jayprakash sharma

Total Post:117

Points:821
Posted by  jayprakash sharma
erlang 
 435  View(s)
Ratings:
Rate this:
I have a need to get all registered process so I use registered() function but it is not returning all the registered process. After showing some process name it is displaying |...
So can you tell me how can I display all the process names?
  1. Tarun Kumar

    Post:214

    Points:1642
    Re: How to display all registered process in Erlang?

    You are using correct function but using it in incorrect way. registered() function is returning all the processes name but problem is with the shell because shell is truncating the output so in last line it is displaying |...
    To display all the process name use it like this:
    io:format("~p~n", [registered()]).

      Modified On Mar-09-2016 01:52:22 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!