MyTetra Share
Делитесь знаниями!
delete all shared memory and semaphores on linux
Время создания: 13.12.2011 15:16
Раздел: Computers - OS - Linux
Запись: xintrea/mytetra_db_rarrugas/master/base/1323785797l65jz5bnjp/text.html на raw.githubusercontent.com

#!/bin/bash

ME=`whoami`

IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "`

IPCS_M=`ipcs -m | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "`

IPCS_Q=`ipcs -q | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "`

for id in $IPCS_M; do

ipcrm -m $id;

done

for id in $IPCS_S; do

ipcrm -s $id;

done

for id in $IPCS_Q; do

ipcrm -q $id;

done

 
MyTetra Share v.0.65
Яндекс индекс цитирования