From cd7d2ca0be15751e4afcf44cbbd39300486bdaa0 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 31 Oct 2019 10:35:19 +0100 Subject: [PATCH] sudo do what I mean Signed-off-by: Joachim Nilsson --- test/remote.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/remote.sh b/test/remote.sh index 69c8eb1..5fd86c4 100755 --- a/test/remote.sh +++ b/test/remote.sh @@ -6,8 +6,8 @@ MSG="kilroy" /sbin/ifconfig -a -tshark -Qni lo -w ${CAP} port ${PORT} & -#tcpdump -qlni lo -w ${CAP} port ${PORT} & +sudo tshark -Qni lo -w ${CAP} port ${PORT} & +#sudo tcpdump -qlni lo -w ${CAP} port ${PORT} & PID="$!" sleep 5 ps fax |grep -A3 tshark @@ -15,7 +15,7 @@ ps fax |grep -A3 tshark ../src/logger -u ${SOCK} ${MSG} sleep 5 -kill -TERM ${PID} +sudo kill -TERM ${PID} wait ${PID} tshark -d udp.port==${PORT},syslog -r ${CAP} | grep ${MSG}