Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Nov 2006 17:33:27 +0100
From:      Koen de Wijs <koendewijs@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   deleting automatically the oldest file from a harddisk
Message-ID:  <45589E57.9050005@gmx.net>

next in thread | raw e-mail | index | archive | help
Hello everybody,

I have a ftp -server. I use a harddisk of  9 Gb for the ftp-directory.

This isn't very big so I want to throw away the oldest file if the disc 
is full.

I can write a cronjob that checks every minute. But isn't there another 
solution;
Can't I just write a C program that listens to some systemcalls and 
automatically deletes the oldest file if the harddisk is full???

I hope someone can help me?

Thanks,

Koen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45589E57.9050005>