Killing mex
Bates TAD/HRNAB ms294 x2601
blbates at AERO4.LARC.NASA.GOV
Fri Nov 18 05:50:28 AEST 1988
Here is a .logout file that I use:
clear
ismex
if($status == 1 && `tty` == '/dev/console') then
kill -9 `ps x | grep 'clock$' | awk '{print $1}' `
kill -9 `ps x | grep 'w[0-9]' | grep 'csh (csh)' | awk '{print $1}' `
kill -9 `ps x | grep 'mex$' | awk '{print $1}' `
endif
if( `tty` == '/dev/console' ) then
gclear
endif
date
First it clears the text screen, then it checks to see if mex is
running and if you are on the console. I usually have the clock running,
so it kills that, next it kills each window (VERY! IMPORTANT). Then it
kills mex. If you are on the console it clears the graphics screen.
The if's are very important, if you don't have them and you log off a
remote terminal it messes up the console, especially if someone is using
it. The order is also important. If you kill mex with out killing the
other windows first it messes things up. If you have any questions, let
me know.
P.S. You must compile ismex in the gifts directory.
/usr/people/gifts/mextools/tools/ismex
More information about the Comp.sys.sgi
mailing list