shithub: riscv

ref: 1c3e6a3e5aad9365e5e0aa2fb2e29b789e852f10
dir: /rc/bin/aanuke/

View raw version
#!/bin/rc
rfork e
for(i in `{ps | grep -e '[ ]+aan$' | awk '{print $2}'}){
	if(! grep -s -e '[ ]+\/net\/tcp\/[0-9]+\/data$' /proc/$i/fd)
		echo '@{echo kill>/proc/'$i'/note} # aan (idle)'
}