#!/bin/csh -f if ($#argv != 1) then echo "Usage : netgrep Port " exit 1 endif set PORT = $1 echo "=======================================" echo " > netstat -an |grep $PORT" netstat -an|grep $PORT echo "---------------------------------------" echo " > ps -ef|grep srv" ps -ef|grep srv |grep -v grep echo "======================================="