#!/bin/bash
# Run netstat periodically
while [ 1 ]
do
  date
  netstat --tcp
  echo
  sleep 30
done
