Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide information about connected users #229

Closed
giampaolo opened this issue May 23, 2014 · 8 comments
Closed

Provide information about connected users #229

giampaolo opened this issue May 23, 2014 · 8 comments

Comments

@giampaolo
Copy link
Owner

From g.rodola on November 09, 2011 20:57:39

This feature would be similar to what is provided by "who" command.
On Unix this info can be extracted from the utmp structure: 
http://linux.die.net/man/5/utmp From there we can extract various information 
such as connected usernames, associated terminals (tty) and login times.

There's a python binding available here: http://software.clapper.org/pyutmp/ As 
for the API, I image a "psutil.get_users()" function returning a list of 
namedtuples for every connected user.

I still have to look into the Windows implementation (actually I still have to 
look into everything =)).

Original issue: http://code.google.com/p/psutil/issues/detail?id=229

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From g.rodola on November 09, 2011 11:57:51

Cc: wj32...@gmail.com

@giampaolo
Copy link
Owner Author

From wj32...@gmail.com on November 09, 2011 12:04:31

Use WTSEnumerateSessions.

@giampaolo
Copy link
Owner Author

From g.rodola on November 09, 2011 14:58:33

Thanks wj32.64.
Initial commit for POSIX systems checked in as r1222 (tested on Linux only).

Status: Started

@giampaolo
Copy link
Owner Author

From g.rodola on November 09, 2011 16:53:39

FreeBSD implementation checked in as r1224 .

Labels: Progress-2in4

@giampaolo
Copy link
Owner Author

From g.rodola on December 14, 2011 09:58:09

Committed code temporarily removed as of r1237 because we're going to have an 
intermediate bug-fix only release.

@giampaolo
Copy link
Owner Author

From g.rodola on March 09, 2012 07:29:40

This is now fixed.
Linux: r1268 Windows: r1270 FreeBSD: r1274 OSX: r1278

Status: FixedInSVN
Labels: -Progress-2in4 Progress-4in4 Milestone-0.5.0

@giampaolo
Copy link
Owner Author

From g.rodola on June 27, 2012 11:54:03

0.5.0 is finally out. Closing out as fixed.

Status: Fixed

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 04:05:34

Updated csets after the SVN -> Mercurial migration: r1222 == revision 
c8f293ea16c1 r1224 == revision e604889f303b r1237 == revision 28f19fcf4713 
r1268 == revision 55627e4776b0 r1270 == revision 972bc30dc941 r1274 == revision 
4921697a3650 r1278 == revision 805a6d68c55b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant