On 7 Aug 2006 10:11:48 -0700
(E-Mail Removed) wrote:
> Anyone have some automated scripts that will start a tcpdump/tethereal
> process, capture the data and rotate the data in a manner so that the
> filesystem does not fill up (ie some kind of circular queueing?).
find . -mtime +1 -exec rm -rf {} ';'
to remove everything over a day old?
you could put that in a while loop, until there is more than N% of disk
available, but I suggest you just calculate your daily traffic and
adjust to suit.
--
Regards, Ed ::
http://www.linuxwarez.co.uk
just another bash hacker
Chuck Norris once had a head on collision with the sun. Luckily, the
sun is so far away that the shift of its position had no effect on
Earth.