diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-02-15 14:25:47 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-15 17:22:52 +0000 |
commit | ef59855ac7daf06e9c780cb1000616924027ed1d (patch) | |
tree | efeaede233ba2deeb55cc52eed6abd6b81abe13f | |
parent | 90829d6eff08be54583efb335a8e27ff9c2bcf1c (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
-rwxr-xr-x | ttcn3-tcpdump-start.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ttcn3-tcpdump-start.sh b/ttcn3-tcpdump-start.sh index 1349cd70..664c080b 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 |