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:
parent
90829d6eff
commit
ef59855ac7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue