The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-03-2009
Aliboy Aliboy is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 4
Get online users OpenSuse

Hello, is there any Shell Command to get a list of all the online users currently online and logged in on my machine?

finger and who both show a log of people that logged in, not the ones that are currently online.
  #2 (permalink)  
Old 11-03-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,972
What qualifies for you the term "online", as opposed to "logged in"?
  #3 (permalink)  
Old 11-03-2009
Aliboy Aliboy is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 4
Well, I have a system running in a network.

The network consist of me and my friend, who's called Tom.

So when he connects and logs in the two logged in users should be:

Tom
Ali
  #4 (permalink)  
Old 11-03-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,972
If by "logged in" you mean logged in to an console session, you can get the list by using
Code:
who | cut -d' ' -f1 | sort -u

Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0