C++ Tips
ps
You can use ps command from C++.(my_ps-0.0.1.tar.gz)
1 int main()
2 {
3 Ps ps;
4 ProcessUtil::getProcessInfo(ps);
5
6 for (Ps::iterator it = ps.begin(); it != ps.end(); it++)
7 {
8 cout << (*it).pid << " " << (*it).cmd << endl;
9 }
10 return 0;
11 }
Authors
Contact
If you have a good idea, then mail Higepon your suggestion; or better yet, join as a developer and contribute!
