#!/bin/bash if="eth2" /usr/sbin/tcpdump -i $if 'udp and (port 10001 or port 10002)' -w - 2> /dev/null | gzip -c > $1.gz