GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Operating System  >  Shell Scripting
Go To First  |  Previous Question  |  Next Question 
 Shell Scripting  |  Question 41 of 47    Print  
how to find how many users have logged in and logged out in last five minutes using shell scripts?
how many users have logged in and logged out in last five or 10 minutes


  
Total Answers and Comments: 5 Last Update: October 15, 2009     Asked by: hankypanky 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: dddbbb
 
Track and filter the output of the last command

Above answer was rated as good by the following members:
mahesh_forfrd, Vijaymorey
August 18, 2008 22:58:33   #1  
dddbbb Member Since: August 2008   Contribution: 1    

RE: how to find how many users have logged in and logged out in last five minutes using shell scripts?
Track and filter the output of the last command
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 1Overall Rating: -N/A-    
September 08, 2008 13:05:16   #2  
shrigouriravi Member Since: July 2008   Contribution: 1    

RE: how to find how many users have logged in and logged out in last five minutes using shell scripts?
By Typing Who command
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 1Overall Rating: -N/A-    
April 28, 2009 09:16:17   #3  
Vijaymorey Member Since: April 2009   Contribution: 3    

RE: how to find how many users have logged in and logged out in last five minutes using shell scripts?
By writing "who -Hu" you get following details o/p

Name Line Time Activity PID Hostname

 
Is this answer useful? Yes | No
August 26, 2009 14:57:53   #4  
pravinshedage2008 Member Since: August 2009   Contribution: 1    

RE: how to find how many users have logged in and logged out in last five minutes using shell scripts?
Use w command give time from when the user is logged in.
w is extended who command.

 
Is this answer useful? Yes | No
October 15, 2009 02:23:11   #5  
parimala.ramesh Member Since: October 2009   Contribution: 1    

RE: how to find how many users have logged in and logged out in last five minutes using shell scripts?
Using SIGALRM
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape