![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| list the names of users who logoff in last 4 minutes | jax_anchal | Shell Programming and Scripting | 2 | 10-03-2006 04:07 AM |
| Apparent logoff’s due to inactivity. | gadgetman | SCO | 0 | 08-29-2006 07:07 PM |
| Logoff a user... | balaji_prk | AIX | 6 | 12-05-2005 10:03 AM |
| logoff idle user script | michieka | UNIX for Dummies Questions & Answers | 4 | 05-24-2002 06:47 AM |
| logoff ghost user | phpote | UNIX for Dummies Questions & Answers | 4 | 07-24-2001 06:46 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Running a script during logoff
I know we can put whatever we need to run during login inside /etc/profile or .profile file. I want to run a set of commands before logoff. Where should I put my commands/scripts? Is such facility available?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
if you are using bash, then put those commands in the .bash_logout file in your home directory
|
|
#3
|
||||
|
||||
|
For tcsh, it's ~/.logout
|
|
#4
|
||||
|
||||
|
What about ksh? I am using Ksh
|
||||
| Google The UNIX and Linux Forums |