while true do echo -----`date '+%r'` -----: netstat -ant | grep :3011 | awk '{print $6}' | sort | uniq -c | sort -n echo httpd processes: [`ps aux | grep httpd | wc -l`] echo . sleep 2 done