cleanshm.sh 171 B

12345678910
  1. #!/bin/sh
  2. LIST=`ipcs | grep $USER | grep " 600 " | awk '{print $2}'`
  3. if uname | grep -q "inux"
  4. then
  5. ipcrm shm $LIST
  6. else
  7. for a in $LIST; do ipcrm -m $a;done
  8. fi