LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-29-2008, 10:41 PM   #1
horizonti_2004
LQ Newbie
 
Registered: Jan 2007
Posts: 14

Rep: Reputation: 0
shell script for users logout in last hour


dear forum
i want to know a command or shell script
which will give the user names logout in last
one hour.please anyone help.my email id is
horizonti_2004@yahoo.com
 
Old 12-29-2008, 11:34 PM   #2
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
You are probably looking for the "Last" Command.
 
Old 12-30-2008, 02:31 AM   #3
filex
Member
 
Registered: Sep 2004
Posts: 56

Rep: Reputation: 15
Last login script

How about this http://www.planetmy.com/blog/linux-l...etails-script/
 
Old 12-30-2008, 04:04 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Off-topic: I suggest to remove your e-mail address, unless you want spam messages dramatically increase in your mailbox! Moreover, there is no need for personal e-mail addresses in a public forum: all the discussion must be visible worldwide, since it serves as knowlegde base. Other users can always send you an e-mail, if you let them do. Review your LQ account options to enable that.
 
  


Reply

Tags
last, lastlog, who


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu bashed shell script for users shell 0.o Linux - Server 6 02-14-2013 06:00 AM
UNIX : Switching users in a shell script? aravindts Programming 5 09-07-2012 03:24 AM
Adding new users via Shell script coolfrog Linux - General 10 12-05-2010 10:47 AM
How do i switch users in a shell script? koobi Programming 8 01-05-2008 02:19 PM
shell script help for users cmontr Programming 11 11-15-2007 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration