• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: get currently logging in users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get currently logging in users


  • Subject: Re: get currently logging in users
  • From: Michael Watson <email@hidden>
  • Date: Fri, 14 Mar 2008 00:02:51 -0400

Why not peruse the sources of the who utility and see how it finds the data you want?

http://www.opensource.apple.com/darwinsource/10.5/shell_cmds-116/who/


-- m-s

On 13 Mar, 2008, at 22:27, lazuardi wrote:


On 2008/03/14, at 10:51, Kyle Sluder wrote:

who (and last) use wtmp and utmp. man utmp(5) for info on how you can
access this information in your own programs.



Yes, I did use utmp as the darwin did at who command, referenced from shell_cmds-811 from darwin source.


but, as I said at my mail before, It didn't give me the full name of the user that has username more than 8 characters.
Is there any way to solve this?



Regards, Ardian


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
@bungie.org


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: get currently logging in users
      • From: lazuardi <email@hidden>
References: 
 >get currently logging in users (From: lazuardi <email@hidden>)
 >Re: get currently logging in users (From: Andrew Farmer <email@hidden>)
 >Re: get currently logging in users (From: lazuardi <email@hidden>)
 >Re: get currently logging in users (From: "Kyle Sluder" <email@hidden>)
 >Re: get currently logging in users (From: lazuardi <email@hidden>)

  • Prev by Date: What's the trick to eliminating 'halos' on buttons?
  • Next by Date: Re: sorting large tables
  • Previous by thread: Re: get currently logging in users
  • Next by thread: Re: get currently logging in users
  • Index(es):
    • Date
    • Thread