Re: find -mmin isn't working

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

 



On Wed, 11 Feb 2009 15:17:53 -0800, Ben Kevan <ben.kevan@xxxxxxxxx> 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


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux