From ef59855ac7daf06e9c780cb1000616924027ed1d Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 15 Feb 2018 14:25:47 +0100 Subject: [PATCH] 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 --- ttcn3-tcpdump-start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttcn3-tcpdump-start.sh b/ttcn3-tcpdump-start.sh index 1349cd701..664c080b1 100755 --- a/ttcn3-tcpdump-start.sh +++ b/ttcn3-tcpdump-start.sh @@ -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