The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Exit or logout kinai UNIX for Dummies Questions & Answers 1 04-14-2008 09:44 AM
.logout sharif SUN Solaris 3 12-24-2007 05:08 AM
auto logout lethgowerboy UNIX for Dummies Questions & Answers 2 11-21-2007 04:16 AM
.logout help 2dumb Shell Programming and Scripting 3 05-10-2007 12:49 PM
logout zam UNIX for Dummies Questions & Answers 2 12-28-2006 07:23 PM

Closed Thread
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 04-07-2004
raguramtgr raguramtgr is offline
Registered User
  
 

Join Date: Jan 2004
Location: chennai, india
Posts: 47
logout command

hi all

The "last" command shows the last login time of the user. is there any command for last logout time.

as usual, replies are appreciated. thanks boys.

raguram R
  #2 (permalink)  
Old 04-07-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
i have never heard of logout being captured.

possabily check the syslog facitilty?

just a thought....
you could write a wrapper for the commands "login" & "exit" that call the logger facility and pass an entry to syslogd.
  #3 (permalink)  
Old 04-07-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
"last" also shows logout time.
  #4 (permalink)  
Old 04-07-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
shows how much i know.

you hear that kids. bo dont know jack.


Code:
from the last command on solaris 8  box:
optimus_p  pts/1        10.40.11.138     Wed Apr  7 10:58 - 11:09  (00:10)

  #5 (permalink)  
Old 04-08-2004
raguramtgr raguramtgr is offline
Registered User
  
 

Join Date: Jan 2004
Location: chennai, india
Posts: 47
my sco release 5 shows this

DEV|rram!last -n4
User Line Device PID Login time Elapsed Time Comments
rram p2 ttyp2 2271 Thu Apr 8 17:33 00:00 logged in
srikanth ftp ftp2263 2263 Thu Apr 8 17:18 00:00
kannan ftp ftp2258 2258 Thu Apr 8 17:16 00:00
rgopal ftp ftp2256 2256 Thu Apr 8 17:16 00:00

Raguram R
  #6 (permalink)  
Old 04-08-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Login. Wait 10 minutes. Logout. Log back in. Now what does "last" look like? Unless "logged in" appears in the comment, that session is logged out. In such a case, added the elapsed time to the login time to get the logout time.
  #7 (permalink)  
Old 04-09-2004
raguramtgr raguramtgr is offline
Registered User
  
 

Join Date: Jan 2004
Location: chennai, india
Posts: 47
i don't want to apply any mathematics here. any other alternate??

raguram R
Closed Thread

Bookmarks

Tags
solaris

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 05:06 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