8 lines
137 B
Bash
Executable file
8 lines
137 B
Bash
Executable file
#!/bin/rc
|
|
rfork e
|
|
if(~ $#* 1){
|
|
user=$1
|
|
}
|
|
ps | sed -n '/^'$user' .* Broken/s%[^ ]* *%~>/proc/%
|
|
s% *.* (.*)%/ctl # \1%
|
|
s%~%echo kill%p'
|