On Wed, Jan 09, 2008 at 10:27:20PM -0600, Leif Johnson wrote:
> > Anyone know of a quick and easy way to find the date of the newest file in a directory tree.
> What kind of systems do you want to be doing this on?
> 
> If it's linux with a kernel version of >= 2.6.13 you might (if it was
> enabled in the kernel) have inotify available.  For a complete
> description see google, but simply inotify allows a program to watch
> the file system for events.  So you could make a simple process to
> watch your tree for appropriate events (file modifies etc.) and keep
> track of what is most recent.

Well, the process might be simple, but if the directory tree is bushy
then you talk about lots of CPU and memory usage to keep track of all
changes until you need them.

florin

-- 
Bruce Schneier expects the Spanish Inquisition.
      http://geekz.co.uk/schneierfacts/fact/163
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20080109/1c848464/attachment-0001.pgp