File: kill-runaway-crx-ded

package info (click to toggle)
alien-arena 7.53%2Bdfsg-3
  • links: PTS, VCS
  • area: contrib
  • in suites: wheezy
  • size: 9,384 kB
  • sloc: ansic: 109,452; cpp: 41,132; sh: 4,278; makefile: 545; ruby: 438
file content (9 lines) | stat: -rwxr-xr-x 181 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
#!/bin/sh

for TPPID in `ps -eo pid,pcpu,comm | grep crx-ded | grep -v grep |
awk '{print $1":"$2}' |
awk 'BEGIN {FS=":"}{ if ($2 > 20.0){print $1} }'`
do
/bin/kill -9 $TPPID
done