Home > DeveloperSection > Forums > How to display all registered process in Erlang?
jayprakash sharma
jayprakash sharma

Total Post:117

Points:821
Posted on    March-08-2016 11:16 PM

 erlang erlang 
Ratings:


 1 Reply(s)
 172  View(s)
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?


Tarun Kumar

Total Post:210

Points:1614
Posted on    March-09-2016 1:52 AM

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

Don't want to miss updates? Please click the below button!

Follow MindStick