deleting automatically the oldest file from a harddisk
    Koen de Wijs 
    koendewijs at gmx.net
       
    Mon Nov 13 16:34:39 UTC 2006
    
    
  
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
    
    
More information about the freebsd-questions
mailing list