Mercurial > otakunoraifu
comparison clear_ipc @ 0:223b71206888
Initial import
author | thib |
---|---|
date | Fri, 01 Aug 2008 16:32:45 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:223b71206888 |
---|---|
1 #!/bin/sh | |
2 # IPC のmessage queue/shared memory が残ってしまっている | |
3 # 時に、それを全部消去するためのスクリプト | |
4 | |
5 killall -KILL test xlovesys xclannad | |
6 ipcs | grep '^q' | awk '{print $2;}' | perl -ne 'chomp; system "ipcrm -q $_";' | |
7 ipcs | grep '^m' | awk '{print $2;}' | perl -ne 'chomp; system "ipcrm -m $_";' | |
8 ipcs | grep '^s' | awk '{print $2;}' | perl -ne 'chomp; system "ipcrm -s $_";' |