1 2 rm -f /tmp/mysem >/dev/null 2>&1 3 rm -f /tmp/sem_open* >/dev/null 2>&1 4 rm -f a.out 5 6 for sem_id in `ipcs -s | awk '{print $2}'` ; do 7 ipcrm sem $sem_id > /dev/null 2>&1 8 done 9 10