[zt] Which process listens to this port (in Solari
作者:黄敏 日期:2009-03-31
If you have 'lsof' installed, it is very easy to find out which process is listening at certain port. However, in Solaris, it may not be so obvious. This is the question my friend asked me and I wrote a short script (listen.sh) for him. Basically it runs 'pfile' over all the processes listed in /proc (except process 0, which is the sched)
#! /bin/sh
if [ $# -ne 1 ]; then
#! /bin/sh
if [ $# -ne 1 ]; then



