![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| /etc/utmp file does not get updated with boot up details | jyoti_mil | UNIX for Advanced & Expert Users | 1 | 06-11-2007 07:41 AM |
| utmp files | Carmen123 | AIX | 2 | 12-21-2006 09:55 AM |
| utmp ACCOUNTING | thmnetwork | High Level Programming | 2 | 06-17-2005 08:16 AM |
| SCO utmp file | scott_williams1 | SCO | 1 | 10-30-2003 07:45 AM |
| Error login user file utmp | jernesto_diaz | UNIX for Dummies Questions & Answers | 3 | 09-06-2002 08:36 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#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!!: |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
How exactly you are using utmp ? locate on my local Fedora produces :
Quote:
|
|
#3
|
|||
|
|||
|
i also have problem like yours
i also want to get users list and their login time, but i can't use utmp, i think you can use utmp, can't you? would you like to show me the code use utmp to get the users name and etc? thanx |
|||
| Google The UNIX and Linux Forums |