ttcn3-tcpdump-start.sh: Log tcpdump output to file

This can be useful in case there was an error in tcpdump, or to make
sure no packets were lost while capturing.

Change-Id: I8d7570bba3c21c017ba38d36185f6ae042967599
This commit is contained in:
Pau Espin 2018-02-15 14:25:47 +01:00 committed by Harald Welte
parent 90829d6eff
commit ef59855ac7
1 changed files with 1 additions and 1 deletions

View File

@ -19,6 +19,6 @@ if [ "$(id -u)" = "0" ]; then
else
CMD="sudo /usr/sbin/tcpdump"
fi
$CMD -s 0 -n -i any -w "$TTCN3_PCAP_PATH/$TESTCASE.pcap" >/dev/null 2>&1 &
$CMD -s 0 -n -i any -w "$TTCN3_PCAP_PATH/$TESTCASE.pcap" >$TTCN3_PCAP_PATH/$TESTCASE.pcap.log 2>&1 &
PID=$!
echo $PID > $PIDFILE