<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Watchman &#8211; A File and Directory Watching Tool for Changes	</title>
	<atom:link href="https://www.tecmint.com/watchman-monitor-file-changes-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/watchman-monitor-file-changes-in-linux/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Tue, 07 Apr 2020 05:33:10 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1325364</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Tue, 07 Apr 2020 05:33:10 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32118#comment-1325364</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1325346&quot;&gt;BK&lt;/a&gt;.

@BK,

Thanks for the tip, specified &lt;strong&gt;openssl-devel&lt;/strong&gt; to the required packages...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1325346">BK</a>.</p>
<p>@BK,</p>
<p>Thanks for the tip, specified <strong>openssl-devel</strong> to the required packages&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: BK		</title>
		<link>https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1325346</link>

		<dc:creator><![CDATA[BK]]></dc:creator>
		<pubDate>Tue, 07 Apr 2020 03:50:18 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32118#comment-1325346</guid>

					<description><![CDATA[----------- On RHEL/CentOS -----------
&lt;pre&gt;
# yum install autoconf automake python-setuptools python-devel libssl-devel libtool 
# yum groupinstall &#039;Development Tools&#039; 
&lt;/pre&gt;
you need to add &quot;&lt;strong&gt;openssl-devel&lt;/strong&gt;&quot; for certain redhat. Else will hit below error when execute &#039;&lt;strong&gt;make&lt;/strong&gt;&#039;:-
&lt;pre&gt;
  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&#039;
make: *** [all] Error 2
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>&#8212;&#8212;&#8212;&#8211; On RHEL/CentOS &#8212;&#8212;&#8212;&#8211;</p>
<pre>
# yum install autoconf automake python-setuptools python-devel libssl-devel libtool 
# yum groupinstall 'Development Tools' 
</pre>
<p>you need to add &#8220;<strong>openssl-devel</strong>&#8221; for certain redhat. Else will hit below error when execute &#8216;<strong>make</strong>&#8216;:-</p>
<pre>
  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
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1318875</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Thu, 27 Feb 2020 10:38:39 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32118#comment-1318875</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1318638&quot;&gt;Mike Lawrence&lt;/a&gt;.

@Mike

Wonderful! Many thanks for sharing.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1318638">Mike Lawrence</a>.</p>
<p>@Mike</p>
<p>Wonderful! Many thanks for sharing.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Lawrence		</title>
		<link>https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1318638</link>

		<dc:creator><![CDATA[Mike Lawrence]]></dc:creator>
		<pubDate>Tue, 25 Feb 2020 12:53:36 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32118#comment-1318638</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1313701&quot;&gt;Aaron Kili&lt;/a&gt;.

Surely!   Here is what I am going to use as the trigger script, the folders can be whatever you need:
&lt;code&gt;
#!/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 &#124; grep rsync &#124; grep -v grep`
RESULT=$?

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

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

rsync -a $SOURCE/ $MIRROR/
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1313701">Aaron Kili</a>.</p>
<p>Surely!   Here is what I am going to use as the trigger script, the folders can be whatever you need:<br />
<code><br />
#!/usr/bin/bash</p>
<p>SOURCE=/root/lookatme<br />
MIRROR=/root/mirrors/lookatme<br />
ARCHIVE=/root/archives/lookatme<br />
TIMESTAMP=`date +%Y-%m-%d.%H:%M:%S`</p>
<p>cd $SOURCE</p>
<p>RUNNING=`ps -ef | grep rsync | grep -v grep`<br />
RESULT=$?</p>
<p>if [ $RESULT == 0 ];<br />
then<br />
  exit;<br />
fi</p>
<p>for item in `rsync -a --out-format="%n" --dry-run $SOURCE/ $MIRROR/ | grep -E '[[:alnum:]]' | grep -v .*.swp`<br />
do<br />
  if [ -f $item ];<br />
  then<br />
    save=`echo $item | sed s#/#%#g`<br />
    cp $item $ARCHIVE/$save.$TIMESTAMP<br />
  fi<br />
done</p>
<p>rsync -a $SOURCE/ $MIRROR/<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1318612</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Tue, 25 Feb 2020 08:35:07 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32118#comment-1318612</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1318528&quot;&gt;Mike Lawrence&lt;/a&gt;.

@Mike

Thanks for sharing your thoughts with us. We are grateful.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/watchman-monitor-file-changes-in-linux/comment-page-1/#comment-1318528">Mike Lawrence</a>.</p>
<p>@Mike</p>
<p>Thanks for sharing your thoughts with us. We are grateful.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
