[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Texpire and fetchnews



Ron 'The InSaNe One' Rosson wrote:
> 
> How hard would it be to set a drive size or directory size into the
> code, and then maybe forcing a texpire. Might something to put on a wish
> list or future feature.
> 
> TIA
> 
In my ip-down script I have the following lines:

BELEG=$(df | grep '/news' | tr -s ' ' | cut -d' ' -f5 | cut -d'%' -f1)
MAXBEL=90

if [ $BELEG -gt $MAXBEL ]; then
    /usr/local/sbin/texpire
fi

Roland

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list