Welcome aboard!
I didnt know to be quite hones until I googled this and found this article :
Link
Let me know if this applies or not.Code:Create a logout script that runs commands when you log out. For example, you might want to back up critical work and delete unwanted files. # Delete all core files. find ~ -name 'core' -exec rm\{\} \; # Delete all emacs backup files. find ~ -name '*~' -exec rm \{\} \; # Make a tar file of the "working" # directory and save it in "tmp". # First remove yesterday's tar. rm ~/tmp/working.tar tar cf ~/tmp/working.tar ~/working C-shell and tc-shell users put the commands in the file ~/.logout. Bash shell users put the commands in the file ~/.bash_logout. Bourne and Korn shell users use the following steps to create a logout script. 1. Create a file in your home directory called .logout that contains commands you want executed when logging out. 2. Mark the file as executable. chmod u+x ~/.logout 3. Add the following line to the ~/.profile file. trap "~/.logout" 0


Reply With Quote
Bookmarks