deleting automatically the oldest file from a harddisk

2006-11-13 Thread Koen de Wijs
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 liste

deleting automatically the oldest file from a harddisk

2006-11-14 Thread Ian Smith
On Mon, 13 Nov 2006 Koen de Wijs wrote: > 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'd tend to define 'full' as perhaps 8GB in that situation, and likely protect at least som