#!/bin/bash
for i in `ipcs -m|grep -w $LOGNAME|awk '{print $2}'`
do
ipcrm -m $i
done
for i in `ipcs -s|grep -w $LOGNAME|awk '{print $2}'`
ipcrm -s $i
for i in `ps -u $LOGNAME|grep LIS.tvm|awk '{print $1}'`
kill -9 $PID