[Dxspider-support] test

Dirk Koopman djk at tobit.co.uk
Sun Jan 7 10:45:07 GMT 2001


On Sunday 07 January 2001 00:46, you wrote:
> Make a cron job something like this:
>
> 0 5 * * * /usr/bin/find /spider/data/debug/2001 -mtime +90 -exec rm {} \;
>
> ...or some variation...
>
> (please test this for your application before you use it - your mileage (or
> kilometerage ?) may vary)
>

Also, I have an executable file called /etc/cron.daily/spider containing the 
line :-

/usr/sbin/tmpwatch -f 240 /spider/data/debug

which just keeps the last 10 days worth of debug files. This also has the 
advantage that you don't have to worry about the year changing...

Dirk





More information about the Dxspider-support mailing list