How to display all registered process in Erlang?

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?
Last updated:3/9/2016 1:52:04 AM

1 Answers

Tarun Kumar
Tarun Kumar

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()]).