Hey guys,
Is there a was to show every process running using C++?
Or to see if "X" process is running?
Thanks
There is always a way.. :)
1. See "man -s 4 proc"
2. See "man -s 1 proc"
If you donno much abt this kinda programming, it might be easier if you run system("ps -eaf | awk ... > tmp.file") from C++ and then just parse this file.
"..." is appropriate arguments to awk depending on your requirements.
U just hit Ctrl-Alt-Del ;)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.