[no subject]
2015-10-04 17:48:52
To remove the semaphores I use following script on my Digital Unix
machine (perhaps you must convert it to Solaris)
USER="$(whoami)"
if [[ "${USER}" = "root" ]];
then
print "don't run this script as root"
return 0
fi
for shm in $(ipcs -m |awk "/${USER}/ {print \$2}");
do
print "removing shared memory segment $shm"
ipcrm -m $shm
done
for sem in $(ipcs -s |awk "/${USER}/ {print \$2}");
do
print "removing semaphore $sem"
ipcrm -s $sem
done
I hope, this can help you.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
|
|
|