git: 9front

ref: b88bebf6f936873136ce941e9a345d3fd46adf63
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'
}