Is there a Bourne-shell .logout script?

Doug Gwyn gwyn at brl-smoke.ARPA
Fri Dec 5 06:08:23 AEST 1986


In article <502 at cdx39.UUCP> jc at cdx39.UUCP (John Chambers) writes:
>The C-shell runs a script called $home/.logout when you tell
>it to log you out.  Is there any way to get the Bourne shell
>to do something similar?

To run such a script upon termination of your login shell,
add something like the following to your .profile:

if [ -r $HOME/.foo ]
then	trap '. $HOME/.foo' 0
fi



More information about the Comp.unix.questions mailing list