shithub: riscv

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