FSWATCH
FSWATCH
Cross-platform OSS file change monitoring tool
Example Usecase
1
2
3
4
5
6
7
8
9
fswatch -o filePath // watch change and print o/p
fswatch -r --exclude '.git' folderPath
fswatch -o filePath | xargs ...
// Using with rsync
fswatch -o ./folderPath | while read num
do
rsync -avz --delete ./folderPath/ userName@serverIp:/folderPath
done
This post is licensed under
CC BY 4.0
by the author.