find -mmin isn't working

Ben Kevan ben.kevan at gmail.com
Wed Feb 11 23:20:22 UTC 2009


On Wed, 11 Feb 2009 15:17:53 -0800, Ben Kevan <ben.kevan at gmail.com> wrote:

> Here is my predicament:
> find file.xml -exec ls -l {} \;
> -rw-r--r--  1 user group 835201 Feb 11 14:49 file.xml
>
> date -r file.xml
> Wed Feb 11 14:49:21 PST 2009
>
> find file.xml -mmin 40 -exec ls -l {} \;
>
>
> date
> Wed Feb 11 15:06:50 PST 2009
>
> What I am trying to do is have a script kicked off via cron to do a find  
> no a certain file, and if it has changed in the last minute to copy it  
> elsewhere.
>
>

whooops.. after I pushed send.. it jumped up at me .. I needed -mmin -40 and not 40 

-- 
I say never be complete. I say stop being perfect. I say let's evolve. Let the chips fall where they may.  -Fight Club





More information about the redhat-list mailing list