shithub: riscv

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