Killing mex
Miq Millman
miq at chromavac.SGI.COM
Sat Nov 19 05:25:09 AEST 1988
In article <8811171344.aa17426 at SMOKE.BRL.MIL>, RAAS at 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 at sgi.com or {sun,decwrl,pyramid,ucbvax}!sgi!miq
415 960 1980 x1041 work
More information about the Comp.sys.sgi
mailing list