shithub: riscv

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