shithub: riscv

ref: be0a80faf3bb94c4e2a8fba2d6b38a931e030f72
dir: /rc/bin/Kill/

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