summaryrefslogtreecommitdiffstats
path: root/ttcn3-tcpdump-start.sh
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-02-15 14:25:47 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-15 17:22:52 +0000
commitef59855ac7daf06e9c780cb1000616924027ed1d (patch)
treeefeaede233ba2deeb55cc52eed6abd6b81abe13f /ttcn3-tcpdump-start.sh
parent90829d6eff08be54583efb335a8e27ff9c2bcf1c (diff)
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
Diffstat (limited to 'ttcn3-tcpdump-start.sh')
-rwxr-xr-xttcn3-tcpdump-start.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ttcn3-tcpdump-start.sh b/ttcn3-tcpdump-start.sh
index 1349cd7..664c080 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