LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack 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, Ubuntu
Posts: 277

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
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: OpenSUSE 12.1 CentOS 6.2
Posts: 9,004

Rep: Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding new users via Shell script coolfrog Linux - General 10 12-05-2010 10:47 AM
Menu bashed shell script for users shell 0.o Linux - Server 5 07-18-2008 10:05 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
UNIX : Switching users in a shell script? aravindts Programming 4 10-12-2007 11:08 AM


All times are GMT -5. The time now is 03:11 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration