#! /bin/sh # adaptible for upd also export TCPPRTS=`netstat -na -t | grep "^tcp" | sed "s/^[^:]*:\(.....\).*/\1/g" | sort -nu` echo "Active tcp ports:" $TCPPRTS for PRT in ${TCPPRTS} ; do echo ==== port number $PRT : `grep "[^0123456789]${PRT}\/tcp" /etc/services` export TPID=`fuser ${PRT}/tcp | cut -d ':' -f 2` ps wax | awk '{print $1" "$5 }' | grep ${TPID} done -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
- Re: who owns the ports? Carl Brock Sides
- Re: who owns the ports? Matthias G. Imhof
- Re: who owns the ports? Giacomo Mulas
- Re: who owns the ports? Bradley M Alexander
- Re: who owns the ports? Philipe Gaspar
- Re: who owns the ports? Giacomo Mulas
- Re: who owns the ports? Wade Richards
- Re: who owns the ports? Rolf Kutz
- Re: who owns the ports? Philipe Gaspar
- Re: who owns the ports? Rolf Kutz
- Re: who owns the ports? John Mullee
- Re: who owns the ports? Carlos Carvalho
- Re: who owns the ports? Giacomo Mulas
- Re: who owns the ports? Carlos Carvalho