Script Tcpdump amb Gnuplot

per Jordi Farrero darrera modificació 2020-03-25T15:50:48+02:00

#!/bin/sh

while true;

do
tcpdump -i eth1 -w band.dmp &
sleep 30
killall tcpdump
tcpstat -r band.dmp -o %S\ %b\\n 30 >> band
tail -n 120 band > band.tmp
cat band.tmp > band
gnuplot band.gnuplot
done