Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: Is there a Bourne-shell .logout script? Message-ID: <5425@brl-smoke.ARPA> Date: Thu, 4-Dec-86 15:08:23 EST Article-I.D.: brl-smok.5425 Posted: Thu Dec 4 15:08:23 1986 Date-Received: Fri, 5-Dec-86 03:42:06 EST References: <502@cdx39.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <502@cdx39.UUCP> jc@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