Path: utzoo!attcan!uunet!husc6!ogccse!blake!uw-beaver!cornell!mailrus!uflorida!haven!ames!sgi!miq@chromavac.SGI.COM From: miq@chromavac.SGI.COM (Miq Millman) Newsgroups: comp.sys.sgi Subject: Re: Killing mex Summary: here's what I do, it work's fine Message-ID: <22228@sgi.SGI.COM> Date: 18 Nov 88 19:25:09 GMT References: <8811171344.aa17426@SMOKE.BRL.MIL> Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 24 In article <8811171344.aa17426@SMOKE.BRL.MIL>, RAAS@APLVM.BITNET (Randy Schrickel) writes: > How can I kill mex automatically when logging out (like something in the > .logout file) ? If mex is left running, anyone can come along and start > a new shell as the old user -- doesn't this seem to be a real problem ?! > > Thanx put these lines in a .logout file, but be careful not to logout with more than the console window open or else you will have to kill your other shells by finding them in a ps -aux. this should do the trick ::::::::::::: .logout ::::::::::::: kill -9 `ps -x | awk '/mex/ { print $1 }'` >& /dev/null gclear clear -- "What is the greatest joy?" "The joy of duty!" Miq Millman -- miq@sgi.com or {sun,decwrl,pyramid,ucbvax}!sgi!miq 415 960 1980 x1041 work