add files

1.2.3
DeffPuzzL 2018-03-12 15:18:49 +08:00
parent 45dedd3594
commit 5d6df97385
1 changed files with 16 additions and 0 deletions

16
bin/ipc.clean Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
for i in `ipcs -m|grep -w $LOGNAME|awk '{print $2}'`
do
ipcrm -m $i
done
for i in `ipcs -s|grep -w $LOGNAME|awk '{print $2}'`
do
ipcrm -s $i
done
for i in `ps -u $LOGNAME|grep LIS.tvm|awk '{print $1}'`
do
kill -9 $PID
done