simple/tcpdump_tools/tcpdump-collect

11 lines
210 B
Plaintext
Raw Permalink Normal View History

2002-04-19 12:05:27 +02:00
#!/bin/sh
while true
do
tcpdump -i eth2 -p -e -s 2000 -c 10000 > dump.`isodate`
while [ `du -s . | awk '{print $1}'` -gt 1000000 ]
do
file=`ls -tr dump.????-??-??T??:??:?? | head -1`
rm $file
done
done