Hey everyone,
(Sorry about the first message if it made it - i got cut off
early). I have a homework problem for my Operating Systems class. I
am supposed to use a command such as "ps -aux" and return "N number of
users, M number of processes". How am I to go about doing this? I am
not very familiar with string parsing in c++, is this the only way? I
am talking about getting the output from "ps -aux" and parsing it to
retrieve the number of unique UIDs.
Any suggestions would be appreciated. Thank you in advance!
Blaine
University of Cincinnati