The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-31-2007
Registered User
 

Join Date: Oct 2007
Posts: 7
Question output of who command

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
Reply With Quote
Forum Sponsor
  #2  
Old 10-31-2007
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,047
See the getutxent() man page. Then Google getutxent for sample code.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0