LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   running a script automatically when Logging out? (https://www.linuxquestions.org/questions/linux-general-1/running-a-script-automatically-when-logging-out-63520/)

hamster 06-03-2003 08:17 PM

running a script automatically when Logging out?
 
Is there a file in Linux (RedHat or general) that is executed upon logout? ie, for cleanup or for logging purposes? I wish to do write to a file and custom logging before the user logs out.

Thanks,
James

green_dragon37 06-03-2003 08:19 PM

If you use the bash shell, i believe the file is .bash_logout in your home directory

Ian

hamster 06-03-2003 08:49 PM

Quote:

Originally posted by green_dragon37
If you use the bash shell, i believe the file is .bash_logout in your home directory

Ian


Groan! Why did I see that? God knows how many times I have seen that file? :rolleyes:

Thanks for that Ian! :D


All times are GMT -5. The time now is 07:43 AM.