#!/bin/bash
ip=192.168.247.173shl=`netstat -lnt | awk 'NR>2{print $4}'| sed 's/.*://' | sort -n | uniq`
cat >> ipport <<EOF$ip${shl}EOF