git: 9front

ref: 7f7c098f85fba9612ea2aa3901b7f5fae3b209f5
dir: /rc/bin/Kill/

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