shithub: riscv

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