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}