6 lines
190 B
Bash
Executable file
6 lines
190 B
Bash
Executable file
#!/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)'
|
|
}
|