![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What happens when user logout? | yhacks | Linux | 1 | 05-15-2008 11:20 PM |
| .logout help | 2dumb | Shell Programming and Scripting | 3 | 05-10-2007 08:49 AM |
| logout | zam | UNIX for Dummies Questions & Answers | 2 | 12-28-2006 04:23 PM |
| How do you logout from a session? | Heron | Linux | 4 | 04-25-2005 10:11 AM |
| logout command | raguramtgr | UNIX for Dummies Questions & Answers | 6 | 04-09-2004 12:36 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
.logout
I want to execute script while exiting a session, to gather session details. How to implement this in Solaris 10
|
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
This is not that much related to the O/S but really to the shell you use.
|
|
#3
|
||||
|
||||
|
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
|
|||
|
|||
|
Actually, with sh and ksh,
Code:
trap "$HOME/.logout EXIT" |
|||
| Google The UNIX and Linux Forums |