shithub: riscv

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