title: Is there an alternative to find the running processes in linux other than terminal parsing using ps command
body: <p>For a CPP application in linux, I need the running processes list, their PID , The port they are running on, and the location of the .exe file where it is started from.</p>
  
  <p>I can use PS command, But I want it in a CPP application. Using System command and parsing the output is not recommended. </p>
  
  <p>Does Linux store these information somewhere from where I can read or is there some native API's which I can make use of like win32 api's in windows.</p>