The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What happens when user logout? yhacks Linux 1 05-16-2008 02:20 AM
.logout help 2dumb Shell Programming and Scripting 3 05-10-2007 11:49 AM
logout zam UNIX for Dummies Questions & Answers 2 12-28-2006 07:23 PM
How do you logout from a session? Heron Red Hat 4 04-25-2005 01:11 PM
logout command raguramtgr UNIX for Dummies Questions & Answers 6 04-09-2004 03:36 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-23-2007
sharif sharif is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 40
.logout

I want to execute script while exiting a session, to gather session details. How to implement this in Solaris 10
  #2 (permalink)  
Old 12-23-2007
jlliagre jlliagre is online now Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,265
This is not that much related to the O/S but really to the shell you use.
  #3 (permalink)  
Old 12-23-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Like jlliagre said, it depends on the shell. As far as I know, csh provides you with .logout that runs commands while logging out of a session, while bash provides you with .bash_logout. Ksh and sh do not provide this functionality.
  #4 (permalink)  
Old 12-24-2007
jlliagre jlliagre is online now Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,265
Actually, with sh and ksh,
Code:
trap "$HOME/.logout EXIT"
can be use for the very same purpose.
Sponsored Links
Closed Thread

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 08:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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