plan9fox/rc/bin/broke
2011-03-30 18:29:07 +00:00

8 lines
142 B
Bash
Executable file

#!/bin/rc
U=`{cat /dev/user}
if(~ $#* 1){
U=$1
}
ps | sed -n '/^'$U' .* Broken/s%[^ ]* *%~>/proc/%
s% *.* (.*)%/ctl # \1%
s%~%echo kill%p'