is there any limitation in inotifywait?

by Kenneth Lui   Last Updated August 14, 2019 05:26 AM - source

I have host A keeps rsync files to host B and a shell script is running in host B to process whenever file is received.

Whenever the number of files synchronization is larger than 9893, i observed the problem starting from 9894 cannot be processed, what could be wrong? would it be related to any sysctl variable?

I've used inotifywatch to check and I believe rsync running in host A does the rsync work fine

inotifywait -m $TARGET_PATH -e create -e moved_to | while read path action file; do cat $TARGET_PATH/$file >> /tmp/result.txt rm -f $TARGET_PATH/$file done

Related Questions

Use ptrace() to observe process until it exits

Updated February 28, 2018 21:26 PM

rsync: how to ignore file names during comparison

Updated November 25, 2018 13:26 PM

How does `scp` differ from `rsync`?

Updated April 30, 2019 14:26 PM

rsync excluding cache directories

Updated July 16, 2017 17:26 PM