KSH .logout script ?
Dwight A Lee
lee at chsun1.uchicago.edu
Thu Mar 21 11:00:08 AEST 1991
uniel at 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 at uts.uni-c.dk DK-2800 Lyngby
>----------------------------------------------------------------------------
--
Dwight A Lee / lee at chsun1.uchicago.edu / T904107 at niucs.BITNET / tCS/BB / Font
I speak only for myself. / "I am not the only dust my mother raised" - TMBG
More information about the Comp.unix.shell
mailing list