7a605f1435
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
21 lines
311 B
Bash
Executable File
21 lines
311 B
Bash
Executable File
#!/bin/sh
|
|
set -x
|
|
. ./test.rc
|
|
|
|
MSG="kilroy"
|
|
|
|
tshark -Qni lo -w ${CAP} port ${PORT} 2>/dev/null &
|
|
#tcpdump -qlni lo -w ${CAP} port ${PORT} 2>/dev/null &
|
|
PID="$!"
|
|
sleep 2
|
|
|
|
../src/logger -u ${SOCK} ${MSG}
|
|
|
|
sleep 2
|
|
kill -TERM ${PID}
|
|
wait ${PID}
|
|
|
|
tshark -d udp.port==${PORT},syslog -r ${CAP} | grep ${MSG}
|
|
rm ${CAP}
|
|
|