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

Re: 20040505: CRAFT data hardware



Karen,

We do the same for our data aging . . . with one exception:

nice find ${MOUNT} -mount -type f -mmin ${CUTOFF) -exec rm -f {} \;

Where CUTOFF is a "+" value.  The "nice" can be crucial with NEXRAD data, as 
find can sometimes monopolize processing at the expense of more valuable 
processing.
-- 
Stonie R. Cooper
Planetary Data, Incorporated

On Wednesday 05 May 2004 05:06 pm, Karen Cooper wrote:
> FYI: regarding the scour script.
>
> On linux a simple modification to the scour script can allow you to
> remove files on the order of minutes (instead of the default days).   It
> also works on Solaris if you install gfind and use it as opposed to the
> Solaris find command.
>
> The change is:
>
> original:
>   find . -type f -mtime +$FINDAGE -name "$pattern" -exec rm -f {} \;) \
>
> new:
>   find . -type f -mmin +$FINDAGE -name "$pattern" -exec rm -f {} \;) \
>
> The just modify your scour settings to be minutes not days.
>
> This has worked very well on many of my systems where I ony keep 1-4
> hours of data at a time.