#!/bin/sh set -ex . ./test.rc MSG="kilroy" /sbin/ifconfig -a tshark -Qni lo -w ${CAP} port ${PORT} & #tcpdump -qlni lo -w ${CAP} port ${PORT} & PID="$!" sleep 1 ps fax |grep -A3 tshark ../src/logger -u ${SOCK} ${MSG} sleep 1 kill -TERM ${PID} wait ${PID} tshark -d udp.port==${PORT},syslog -r ${CAP} | grep ${MSG} rm ${CAP}