![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ls command output | arsheshadri | AIX | 1 | 08-20-2007 03:23 AM |
| if command not having the right output | filthymonk | Shell Programming and Scripting | 9 | 05-22-2007 10:11 PM |
| Output of ps -ef command | dbrundrett | UNIX for Advanced & Expert Users | 6 | 01-06-2005 11:48 AM |
| Output of ps command | ls1429 | UNIX for Dummies Questions & Answers | 1 | 02-03-2003 07:40 AM |
| Output command | berty007 | Shell Programming and Scripting | 4 | 11-29-2002 02:27 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
hi,
is there any system api or structure to get the information about the currently logged in users which the who command gives? i want to do it using any system structures maintained by kernel for logged in users info. the program should show all the user names of currently logged in user.i found one header utmp.h where logged in user information is extracted by the kernel using that structure. can anyone suggest me any portable way to do the same thing as 'who/users' gives. any small code snippet will also do... thanks in advance.. sanjay |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
See the getutxent() man page. Then Google getutxent for sample code.
|
|||
| Google The UNIX and Linux Forums |