The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-13-2007
praveenkumar_l's Avatar
Registered User
 

Join Date: May 2007
Posts: 36
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?
Reply With Quote
Forum Sponsor
  #2  
Old 06-13-2007
Yogesh Sawant's Avatar
Part Time Moderator and Full Time Dad
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 798
if you are using bash, then put those commands in the .bash_logout file in your home directory
Reply With Quote
  #3  
Old 06-13-2007
solfreak's Avatar
Registered User
 

Join Date: Jun 2007
Posts: 35
For tcsh, it's ~/.logout
Reply With Quote
  #4  
Old 06-13-2007
praveenkumar_l's Avatar
Registered User
 

Join Date: May 2007
Posts: 36
What about ksh? I am using Ksh
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0