The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-27-2009
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,781
On Linux, connecting accounting is managed through the following utilities:
  • dump-utmp : Converts raw data from /var/run/utmp or /var/log/wtmp into readable ASCII text. Hint: Good for scripting.
  • ac : Reads /var/log/utmp and outputs user connect time in hours.
  • last :Shows a list of last logged-in hours. More detail than ac.
  • who : Shows currently logged-in users. Reads from /var/log/utmp file.
  • utmp : Logs active user sessions.
  • wtmp : Records login and logout activity. Also records system reboots and run-level changes.

So, you can easily get the source code and finish your project in a few days.

Frankly speaking, I don't understand why a student posts such a question here, because you can easily get enough answers and code to move this project forward very fast with a simple Google search.

I am closing this thread after my post. You have more than enough info to move your project forward in this post.

Learn to use Google, that is my advice! All you have done, by posting this question, is to get someone (me) to Google for you. You should be ashamed of yourself. What kind of students can't do simple key word searches using Google??