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