Comments on: Watchman – A File and Directory Watching Tool for Changes https://www.tecmint.com/watchman-monitor-file-changes-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Tue, 07 Apr 2020 05:33:10 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1325364 Tue, 07 Apr 2020 05:33:10 +0000 https://www.tecmint.com/?p=32118#comment-1325364 In reply to BK.

@BK,

Thanks for the tip, specified openssl-devel to the required packages…

]]>
By: BK https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1325346 Tue, 07 Apr 2020 03:50:18 +0000 https://www.tecmint.com/?p=32118#comment-1325346 ———– On RHEL/CentOS ———–

# yum install autoconf automake python-setuptools python-devel libssl-devel libtool 
# yum groupinstall 'Development Tools' 

you need to add “openssl-devel” for certain redhat. Else will hit below error when execute ‘make‘:-

  CXX      thirdparty/jansson/libwmanjson_a-strbuffer.o
  CXX      thirdparty/jansson/libwmanjson_a-strconv.o
  CXX      thirdparty/jansson/libwmanjson_a-utf.o
  CXX      thirdparty/jansson/libwmanjson_a-value.o
  AR       libwmanjson.a
  CXX      watchman-ChildProcess.o
  CXX      watchman-ContentHash.o
ContentHash.cpp:13:25: fatal error: openssl/sha.h: No such file or directory
 #include 
                         ^
compilation terminated.
make[1]: *** [watchman-ContentHash.o] Error 1
make[1]: Leaving directory `/vagrant_data/watchman_build.2017-09-08T22:41:55Z/watchman'
make: *** [all] Error 2
]]>
By: Aaron Kili https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1318875 Thu, 27 Feb 2020 10:38:39 +0000 https://www.tecmint.com/?p=32118#comment-1318875 In reply to Mike Lawrence.

@Mike

Wonderful! Many thanks for sharing.

]]>
By: Mike Lawrence https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1318638 Tue, 25 Feb 2020 12:53:36 +0000 https://www.tecmint.com/?p=32118#comment-1318638 In reply to Aaron Kili.

Surely! Here is what I am going to use as the trigger script, the folders can be whatever you need:

#!/usr/bin/bash

SOURCE=/root/lookatme
MIRROR=/root/mirrors/lookatme
ARCHIVE=/root/archives/lookatme
TIMESTAMP=`date +%Y-%m-%d.%H:%M:%S`

cd $SOURCE

RUNNING=`ps -ef | grep rsync | grep -v grep`
RESULT=$?

if [ $RESULT == 0 ];
then
exit;
fi

for item in `rsync -a --out-format="%n" --dry-run $SOURCE/ $MIRROR/ | grep -E '[[:alnum:]]' | grep -v .*.swp`
do
if [ -f $item ];
then
save=`echo $item | sed s#/#%#g`
cp $item $ARCHIVE/$save.$TIMESTAMP
fi
done

rsync -a $SOURCE/ $MIRROR/

]]>
By: Aaron Kili https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1318612 Tue, 25 Feb 2020 08:35:07 +0000 https://www.tecmint.com/?p=32118#comment-1318612 In reply to Mike Lawrence.

@Mike

Thanks for sharing your thoughts with us. We are grateful.

]]>