Script to find and monitor the PID that is associate with a port. Takes the 'port number' as argument.
You may want to see my blog:
Chi Hung Chan: Which process listens to this port (in Solaris)
Sun's BigAdmin has recently posted this:
BigAdmin Description - PortMonitoring (find PID Port)