utility for tailing file systems?

View: New views
2 Messages — Rating Filter:   Alert me  

utility for tailing file systems?

by Edward Peschko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

All,

I was wondering if there was any utility available to tail a file
system - show new file creation, file deletes,etc. I have a very large
file system which I'd like to index, and it doesn't really make sense
to do a find, wait an hour, and do a find again - I'd rather do
something like dtrace under solaris and get all file creation events
at the point the kernel does them..

Anyways, is there a canned utility like find to do this, or am I stuck
with a looping find (note this is under linux)

Ed



Parent Message unknown Re: utility for tailing file systems?

by Edward Peschko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> Anyways, is there a canned utility like find to do this, or am I stuck
>> with a looping find (note this is under linux)
>
> Under Linux, look at the inotify framework.  If the
> inotify{watch,wait} tools don't do what you need, there's a reasonably
> rich API available to make more precise handlers.
>

thanks much for the info.. BTW, it might be very nice to have
inotify-like functionality available in find itself, for platforms that
support it...

Ed