Re: incron not seeing IN_CLOSE_WRITE?

From: David Ward <david_at_dward.us>
Date: Tue, 14 Dec 2010 10:51:52 +1100

Maybe
It is IN_CREATE I am using. This is for files that are created in the NFS
exported folder.

Yes I don't think this will help you.

-- 
Regards
David Ward
On Sun, 12 Dec 2010 12:35:12 +1000, Andrew Pollock
<andrew-incron_at_andrew.net.au> wrote:
> On Sun, Dec 12, 2010 at 01:24:23PM +1100, David Ward wrote:
>> I will check when I get to work. I am pretty sure I use IN_MODIFY in my
>> setup at work.
>> The setup is a client NFS mounts a share off a server, drops in a file
>> with its hostname as the file name. The server than runs a script with
>> that file/hostname.
> 
> I'm not sure if NFS insulates you from it, but my understanding of the
> difference between IN_MODIFY and IN_CLOSE_WRITE is that an IN_MODIFY
event
> is emitted for each and every write that hits the filesystem. So let's
say
> a
> large file is being copied between systems, and you're watching that
file
> on
> the destination system. You'll see numerous IN_MODIFY events. If you
copied
> the file based on one of them, you wouldn't get the entire file.
> 
> That's the beauty of IN_CLOSE_WRITE. You know the file that has been
> modified, is now closed.
> 
> I think I've managed to answer my own question elsewhere in this thread
as
> to why I was seeing the behaviour that I was seeing.
> 
> regards
> 
> Andrew
Received on Tue Jun 05 2012 - 22:14:21 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 05 2012 - 22:14:21 CEST