views:

486

answers:

1

Hello,

I'm starting in C++, reading a good book of it and i want to build a program that show to the user all the process that the Linux of he is doing, using C++, someone can help me please. Thanks!

+4  A: 

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.

Aiden Bell
Thanks!!!!!!!!!!!!!!!!!!!!!
Nathan Campos
No worries! :)....
Aiden Bell