#!/bin/sh # netstat v1.0 (c) 19.2.99 by Andreas Ley (u) 19.2.99 # CGI script showing network connection statistics echo Content-Type: text/plain echo netstat -n | awk '$1=="tcp"{s[$6]++}END{for(x in s)print x" "s[x]}' | sort