#! /usr/bin/csh set NAME=`whoami` set NUM=`ipcs | grep $NAME | awk '{print $2}'` ipcrm -m $NUM