The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-30-2007
maverixxx maverixxx is offline
Registered User
 

Join Date: Aug 2007
Posts: 1
Help Needed using utmp file!

Hi.

I am working on a small assignment where i need to extract the login information of currently logged in users in a Linux client-server environment.I am able to extract only the userID,IP/HOST name,TTY,device name,GID,PID and login time using the structure 'utmp'.Also when i am saving the inforamtion in a particular file the GID and PID columns are blank in the saved file.Can Anyone explain why?..

Also i want to also display the information about the last access time of a user.Can this be done??.

Please Help!!:
Reply With Quote
Forum Sponsor