Tcpbusy
From Ye Ole Stash
#!/bin/bash #This hack is NOT pretty, is NOT 100% tested, nor is it always going to work. YOU HAVE BEEN WARNED. If you really need this contact me and I will work with you on a solution. tail -n 35 /var/log/maillog | grep tcpserver | grep status | grep 1500 | awk '{print $9}' | cut -d"/" -f 1 | tail -n1 ps -ef | grep tcpserver | wc -l </bash>