For monitoring a network I need a single C/C++ program using unix commands to retrieve the username, associated static IP address, what time user logged in, log out, total time system used by user. so that if a system has several users who use it @ different times of the day... then i need details of all users me,time of log in, static IP &all ...