Path: utzoo!attcan!uunet!husc6!mailrus!ames!haven!adm!xadmx!moss@BRL.MIL From: moss@BRL.MIL (VLD/VMB) Newsgroups: comp.unix.questions Subject: Re: Logout from inside Suntools Message-ID: <17612@adm.BRL.MIL> Date: 22 Nov 88 15:13:06 GMT Sender: news@adm.BRL.MIL Lines: 22 This works well for me in my .profile: case $TERM in sun) case "`tty`" in /dev/console) wait echo "suntools ? \c" read answer junk case $answer in [nN]*) ;; *) /usr/bin/suntools; exec ${SHELL} $HOME/.logout;; esac;; esac;; esac If you want suntools, hit to the "suntools ? " prompt, otherwise a 'n' or 'N' will allow you to avoid it (I don't like typing interrupts at my .profile, but that way works fine too). The key is the 'exec' of .logout which replaces your login shell, logging you out. -moss