Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!ux1.cso.uiuc.edu!midway!chsun1!lee From: lee@chsun1.uchicago.edu (Dwight A Lee) Newsgroups: comp.unix.shell Subject: Re: KSH .logout script ? Message-ID: Date: 21 Mar 91 01:00:08 GMT References: <1991Mar18.095244.9728@uts.uni-c.dk> Sender: news@midway.uchicago.edu (News Administrator) Organization: University of Chicago Lines: 21 uniel@uts.uni-c.dk (Erik Lawaetz) writes: >Is there a KSH logout script like csh's .logout ? You can use the trap command to execute a command upon EXIT: trap ~/.logout EXIT which will run the .logout script n your home directory when you exit ksh. This works for other signals too; check the man page (or book) for details. >---------------------------------------------------------------------------- >Erik Lawaetz UNI*C Lyngby > Danish Computing Centre for Research and Education. >+45 45 93 83 55 DTH, Building 305 >uniel@uts.uni-c.dk DK-2800 Lyngby >---------------------------------------------------------------------------- -- Dwight A Lee / lee@chsun1.uchicago.edu / T904107@niucs.BITNET / tCS/BB / Font I speak only for myself. / "I am not the only dust my mother raised" - TMBG