1

I am starting in C++, reading a good book of it and I want to build a program that shows the user all the process that the Linux of he is doing, using C++.

niton
  • 8,771
  • 21
  • 32
  • 52
Nathan Campos
  • 28,769
  • 59
  • 194
  • 300

1 Answers1

7

Using the library

http://procps.sourceforge.net/

For reading proc entries would be useful. This is how top and others gain access to a list of running process.

Also see a similar question:

Linux API to list running processes

You can also link to the libproc library rather than copying source from procps.

Community
  • 1
  • 1
Aiden Bell
  • 28,212
  • 4
  • 75
  • 119