title: How to know all nodes process running in the server
body: <p>I have a requirement that to get all node process pids from a server. I know <code>ps</code> and all similar ones. But the problem is like pm2 daemons (Actual node process)</p>
  
  <pre><code>[root@Gems172 Python]# ps -lef | grep pm2
  0 S root       919 29043  0  80   0 - 29260 pipe_w 16:53 pts/2    00:00:00 grep --color=auto pm2
  4 S root      8192     1  0  80   0 - 304940 ep_pol Apr17 ?       14:40:53 PM2 v2.4.0: God Daemon (/root/.pm2)
  </code></pre>
  
  <p>How to detect all these process as node process??? Is there anyway like <code>/proc</code> or <code>/sys</code> or anyotherway???</p>