chiark / gitweb /
Templates for scripts. Monitoring script. Do not depend on time of generation at...
[vinegar-ip.git] / on-dest.template
1 #!/bin/sh
2 # Received packets collection script.
3 # Run this script on @@S as root, saying:
4 #   ./on-dest.sh PART [<other tcpdump options>]
5 # where PART ranges from 1 to 100
6
7 if [ $# -lt 1 ]; then echo >&2 'PART?'; exit 1; fi
8 part=$1; shift
9
10 exec tcpdump -ps@@M -w recv-$part.pcap "$@" \
11  src host @@S and dst host @@D