#!/bin/sh # Received packets collection script. # Run this script on @@S as root, saying: # ./on-dest.sh PART [] # where PART ranges from 1 to 100 if [ $# -lt 1 ]; then echo >&2 'PART?'; exit 1; fi part=$1; shift exec tcpdump -ps@@M -w recv-$part.pcap "$@" \ src host @@S and dst host @@D