<?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: Script for identifying when crontab has been modified in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-identifying-when-crontab-has-been-modified/m-p/3105816#M147754</link>
    <description>I actually found that [ stuff in this forum in multiple places.  Is it just getting scrambled somehow?  The intent is to check if the file $name_crontab is a zero byte file.  If not send the email that the crontab has been modified.  Is that what I'm accomplishing with the square brackets?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 29 Oct 2003 18:49:25 GMT</pubDate>
    <dc:creator>Roy Schauwecker</dc:creator>
    <dc:date>2003-10-29T18:49:25Z</dc:date>
    <item>
      <title>Script for identifying when crontab has been modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-identifying-when-crontab-has-been-modified/m-p/3105814#M147752</link>
      <description>I've been trying to construct a script based off of some of the postings I've found in this forum.  I'm doing a diff between the existing crontab and a "base" copy of the crontab.  If it finds a difference, it sends me a message.  Yes, I'm shell script challenged.  Here's what I have to this point:&lt;BR /&gt;&lt;BR /&gt;ll crontabs | awk '{print $9}' | while read name&lt;BR /&gt;do&lt;BR /&gt;diff crontabs/$name /cron/backup/$name&amp;gt; $name_crontabtext&lt;BR /&gt;if [ -s crontabtext ] &lt;BR /&gt;then &lt;BR /&gt;mail....&lt;BR /&gt;&lt;BR /&gt;-----------------------&lt;BR /&gt;&lt;BR /&gt;I run into this: Syntax error at line 4 : `&amp;amp;' is not expected.&lt;BR /&gt;&lt;BR /&gt;Where am I going wrong?</description>
      <pubDate>Wed, 29 Oct 2003 18:01:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-identifying-when-crontab-has-been-modified/m-p/3105814#M147752</guid>
      <dc:creator>Roy Schauwecker</dc:creator>
      <dc:date>2003-10-29T18:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script for identifying when crontab has been modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-identifying-when-crontab-has-been-modified/m-p/3105815#M147753</link>
      <description>if looks as though your cut and paste got mangled all that [ and ] stuff should be square brackets.&lt;BR /&gt;&lt;BR /&gt;if [[ -s "${name_crontabtext}" ]]&lt;BR /&gt;then&lt;BR /&gt;mail ...&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Oct 2003 18:23:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-identifying-when-crontab-has-been-modified/m-p/3105815#M147753</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-29T18:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script for identifying when crontab has been modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-identifying-when-crontab-has-been-modified/m-p/3105816#M147754</link>
      <description>I actually found that [ stuff in this forum in multiple places.  Is it just getting scrambled somehow?  The intent is to check if the file $name_crontab is a zero byte file.  If not send the email that the crontab has been modified.  Is that what I'm accomplishing with the square brackets?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Oct 2003 18:49:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-identifying-when-crontab-has-been-modified/m-p/3105816#M147754</guid>
      <dc:creator>Roy Schauwecker</dc:creator>
      <dc:date>2003-10-29T18:49:25Z</dc:date>
    </item>
  </channel>
</rss>

