sudo do what I mean
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
ef00787c5c
commit
cd7d2ca0be
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user