<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: triggers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542677#M865722</link>
    <description>hi&lt;BR /&gt;&lt;BR /&gt;--------cut here-----------&lt;BR /&gt;# Etc watcher&lt;BR /&gt;ls -l /etc/passwd &amp;gt;&amp;gt; /tmp/etclog&lt;BR /&gt;ls -l /etc/passwd &amp;gt;&amp;gt; /tmp/etclog&lt;BR /&gt;&lt;BR /&gt;--------cut here----------&lt;BR /&gt;&lt;BR /&gt;The above short script will do it just cron it to run as and when you require.  Then just check the log file each day.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula</description>
    <pubDate>Wed, 20 Jun 2001 06:52:20 GMT</pubDate>
    <dc:creator>Paula J Frazer-Campbell</dc:creator>
    <dc:date>2001-06-20T06:52:20Z</dc:date>
    <item>
      <title>triggers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542676#M865721</link>
      <description>hI,&lt;BR /&gt;I have small requirement .I want to have some notifiaction not in term of mail eaxcatly whenever my etc/services and /etc/passwd ,group file is changed.I want this notification in  a file.Which i can view on daily basis.Can anybody help me.</description>
      <pubDate>Wed, 20 Jun 2001 06:47:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542676#M865721</guid>
      <dc:creator>dhanish</dc:creator>
      <dc:date>2001-06-20T06:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: triggers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542677#M865722</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;--------cut here-----------&lt;BR /&gt;# Etc watcher&lt;BR /&gt;ls -l /etc/passwd &amp;gt;&amp;gt; /tmp/etclog&lt;BR /&gt;ls -l /etc/passwd &amp;gt;&amp;gt; /tmp/etclog&lt;BR /&gt;&lt;BR /&gt;--------cut here----------&lt;BR /&gt;&lt;BR /&gt;The above short script will do it just cron it to run as and when you require.  Then just check the log file each day.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Wed, 20 Jun 2001 06:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542677#M865722</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-06-20T06:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: triggers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542678#M865723</link>
      <description>Hi PAUL&lt;BR /&gt;Thanks for the reply.But can u explain it .I did not get your clue.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jun 2001 07:55:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542678#M865723</guid>
      <dc:creator>dhanish</dc:creator>
      <dc:date>2001-06-20T07:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: triggers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542679#M865724</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;The ls -l /etc/passwd &amp;gt;&amp;gt; /tmp/etclog will do a long listing of the file passwd in /etc and using the &amp;gt;&amp;gt; will send this information to a file in /tmp called etclog (a new file)&lt;BR /&gt;&lt;BR /&gt;The double &amp;gt;&amp;gt; will just add and entry above the last one:-&lt;BR /&gt;&lt;BR /&gt;-r--r--r--   1 root       other        96421 Jun 18 14:34 /etc/passwd&lt;BR /&gt;-r--r--r--   1 root       other        96421 Jun 19 14:34 /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jun 2001 08:12:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542679#M865724</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-06-20T08:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: triggers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542680#M865725</link>
      <description>Hi Nitin,&lt;BR /&gt;&lt;BR /&gt;you can do the following :&lt;BR /&gt;&lt;BR /&gt;1. Create a script in /home/tmp with name generateOriginal.sh&lt;BR /&gt;it's content is :&lt;BR /&gt;/usr/bin/ls -l /etc/passwd &amp;gt; /home/tmp/originalTimeStamp.log&lt;BR /&gt;&lt;BR /&gt;2.Create a script in /home/tmp with name generateActual.sh&lt;BR /&gt;it's content is :&lt;BR /&gt;/usr/bin/ls -l /etc/passwd &amp;gt; /home/tmp/actualTimeStamp.log&lt;BR /&gt;&lt;BR /&gt;3. Create a script in /home/tmp with name compareTimeStamp.sh &lt;BR /&gt;it's content is :&lt;BR /&gt;/usr/bin/diff  /home/tmp/originalTimeStamp.log  /home/tmp/actualTimeStamp.log &amp;gt; /home/tmp/compareTimeStamp.log&lt;BR /&gt;&lt;BR /&gt;4. execute crontab -e command and add the following ONE LINE:&lt;BR /&gt;&lt;BR /&gt;00 17 * * * /home/tmp/compareTimeStamp.sh&lt;BR /&gt;&lt;BR /&gt;5. You should change the mode of scripts in order to be able to execute them :&lt;BR /&gt;&lt;BR /&gt;/usr/bin/chmod 700 generateOriginal.sh  generateActual.sh compareTimeStamp.sh &lt;BR /&gt;&lt;BR /&gt;And each day check the content of file /home/tmp/compareTimeStamp.log, if the /etc/passwd is still unchanged, th size of file /home/tmp/compareTimeStamp.log will be ZERO. If the size is different from ZERO so the content of /home/tmp/compareTimeStamp.log will show you what had changed in /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;You can do the same for any other file.&lt;BR /&gt;Bye&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jun 2001 08:22:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542680#M865725</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-06-20T08:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: triggers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542681#M865726</link>
      <description>Thanks Paul !!!!</description>
      <pubDate>Wed, 20 Jun 2001 08:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542681#M865726</guid>
      <dc:creator>dhanish</dc:creator>
      <dc:date>2001-06-20T08:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: triggers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542682#M865727</link>
      <description>Thanks Kamal !!!!!</description>
      <pubDate>Wed, 20 Jun 2001 12:25:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/triggers/m-p/2542682#M865727</guid>
      <dc:creator>dhanish</dc:creator>
      <dc:date>2001-06-20T12:25:33Z</dc:date>
    </item>
  </channel>
</rss>

