plan9fox/rc/bin/Kill
2011-03-30 17:14:36 +03:00

4 lines
115 B
Bash
Executable file

#!/bin/rc
for(i){
ps | sed -n '/ '^$i^'$/s%^[^ ]* *([^ ]*).*%chmod 666 /proc/\1/ctl;echo kill > /proc/\1/ctl%p'
}