echo Removing \""Q(message queue)\"" created by \"${USER}\" ...
ipcs -q|grep ${USER}|awk '{print $2}'|xargs -t -I {} ipcrm -q {}
echo Removing \""M(shared memory)\"" created by \"${USER}\" ...
ipcs -m|grep ${USER}|awk '{print $2}'|xargs -t -I {} ipcrm -m {}
echo Removing \""S(semaphore)\"" created by \"${USER}\" ...
ipcs -s|grep ${USER}|awk '{print $2}'|xargs -t -I {} ipcrm -s {}