When using the tcsh shell, it attempts to execute certain files when you log onto the system and when you logout of the system. When you logon tcsh looks for a file called ".login" and tries to execute the contents of the file. When you logout tcsh looks for a file called ".logout" and again tries to execute the contents of the file
Here is an example of a .login file...
# This is the default standard .login provided to csh users.
# They are expected to edit it to meet their own needs.
# Set the interrupt character to Ctrl-c and do clean backspacing.
##### sets interrupt sequence #####
if (-t 0) then
stty intr '^C' echoe
endif
##### Set the TERM environment variable #####
eval `tset -s -Q`
####### my modifications from here #######
# print new mail
echo "--- New Mail Messages ---"
nfrm
# print my quota
echo "\n--- My Disk Quota ---"
quota -v
echo ""
# remove that annoying netscape lock
rm -f .netscape/lock
|
Here is an example of a .logout file...
# File: .logout # Author: Daniel J. Hood # Date: long long time ago # clean up Internet explorers cache... rm -rf "/afs/umbc.edu/users/d/h/dhood2/home/.2kprofile/Temporary Internet Files" # clean up UNIX netscape's cache rm -rf .netscape/cache # clear the screen clear |