[CentOS-devel] inotify - triggering scripts based on file events

Brian Lalor blalor at bravo5.org
Sun Mar 6 15:07:46 UTC 2016


I use incron for this kind of thing. Trigger on the close of the file. 

-- 
Brian Lalor
blalor at bravo5.org

> On Mar 6, 2016, at 9:13 AM, michael gordon <mgordonabc at gmail.com> wrote:
> 
> We allow our third party clients to upload files for processing via ftp. Once the file is done a java app is triggered to process the file and move it to a processed folder. How do we know when the file is done writing,the file events  we have observed include create, modify.  These dont help since the ftp program writes file contents in blocks and then triggers the modified event, there is no finish event.
> 
> What can you recommend
> 
> -- 
>> Michael Gordon
>> Email: mgordonabc at gmail.com
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel at centos.org
> https://lists.centos.org/mailman/listinfo/centos-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20160306/447f7eba/attachment.html>


More information about the CentOS-devel mailing list