8f459d349a
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
23 lines
333 B
Bash
Executable File
23 lines
333 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 1
|
|
|
|
echo "Hej"
|
|
../src/logger -u ${SOCK} ${MSG}
|
|
|
|
echo "Nej"
|
|
sleep 1
|
|
kill -TERM ${PID}
|
|
wait ${PID}
|
|
|
|
tshark -d udp.port==${PORT},syslog -r ${CAP} | grep ${MSG}
|
|
rm ${CAP}
|
|
|