<?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: Check consistency in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458214#M359741</link>
    <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;the files are in different servers , can advise how can I use your script to compre it  ? thx</description>
    <pubDate>Tue, 14 Jul 2009 10:07:50 GMT</pubDate>
    <dc:creator>heaman1</dc:creator>
    <dc:date>2009-07-14T10:07:50Z</dc:date>
    <item>
      <title>Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458205#M359732</link>
      <description>We have two servers ( server A &amp;amp; server B ) and have two files ( file 1 &amp;amp; file 2 ) , file 1 is in server A while file 2 is in server B , the file format is as attachment .&lt;BR /&gt;&lt;BR /&gt;In this two files ( file 1 and file 2 ) , the file named with .txt should be the same , ( in file 2 , all file name begins with /tmp/file2 )  , the .txt file name is separated by the date string ( eg. 20090709-1930 )  , the .txt file name and date string is append to file 1 and file 2 from time to time , &lt;BR /&gt;&lt;BR /&gt;To make sure the .txt file name in both file ( file 1 and file 2 ) is consistency , I would like to regularly check the files ,   when found the files is not consistency ( eg. in file 1 have ???.txt while file B do have have corresponding file name in it ) , then send me a notification , can advise if I would like to check the file consistency of the same day ,  how can I write the script ? thx much in advance.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jul 2009 02:03:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458205#M359732</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-07-13T02:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458206#M359733</link>
      <description>File 1&lt;BR /&gt;======&lt;BR /&gt;&lt;BR /&gt;"&lt;BR /&gt;"&lt;BR /&gt;20090709-1930&lt;BR /&gt;20090709-2000&lt;BR /&gt;20090709-2030&lt;BR /&gt;20090709-2100&lt;BR /&gt;20090709-2130&lt;BR /&gt;aaa.txt&lt;BR /&gt;20090709-2200&lt;BR /&gt;20090709-2230&lt;BR /&gt;20090709-2300&lt;BR /&gt;20090709-2330&lt;BR /&gt;20090709-0000&lt;BR /&gt;20090710-0030&lt;BR /&gt;20090710-0100&lt;BR /&gt;20090710-0130&lt;BR /&gt;bbb.txt&lt;BR /&gt;20090710-0200&lt;BR /&gt;20090710-0230&lt;BR /&gt;20090710-0300&lt;BR /&gt;20090710-0330&lt;BR /&gt;20090710-0400&lt;BR /&gt;20090710-0430&lt;BR /&gt;20090710-0500&lt;BR /&gt;20090710-0530&lt;BR /&gt;20090710-0600&lt;BR /&gt;ccc.txt&lt;BR /&gt;20090710-0630&lt;BR /&gt;20090710-0700&lt;BR /&gt;20090710-0730&lt;BR /&gt;20090710-0800&lt;BR /&gt;20090710-0830&lt;BR /&gt;ddd.txt&lt;BR /&gt;eee.txt&lt;BR /&gt;fff.txt&lt;BR /&gt;ggg.txt&lt;BR /&gt;hhh.txt&lt;BR /&gt;20090710-0900&lt;BR /&gt;20090710-0930&lt;BR /&gt;20090710-1000&lt;BR /&gt;20090710-1030&lt;BR /&gt;20090710-1100&lt;BR /&gt;20090710-1130&lt;BR /&gt;20090710-1200&lt;BR /&gt;20090710-1230&lt;BR /&gt;20090710-1300&lt;BR /&gt;20090710-1330&lt;BR /&gt;&lt;BR /&gt;"&lt;BR /&gt;"&lt;BR /&gt;"&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jul 2009 02:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458206#M359733</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-07-13T02:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458207#M359734</link>
      <description>File 2&lt;BR /&gt;======&lt;BR /&gt;&lt;BR /&gt;"&lt;BR /&gt;"&lt;BR /&gt;20090709-1930&lt;BR /&gt;20090709-2000&lt;BR /&gt;20090709-2030&lt;BR /&gt;20090709-2100&lt;BR /&gt;20090709-2130&lt;BR /&gt;20090709-2200&lt;BR /&gt;/tmp/file2aaa.txt&lt;BR /&gt;20090709-2230&lt;BR /&gt;20090709-2300&lt;BR /&gt;20090709-2330&lt;BR /&gt;20090709-0000&lt;BR /&gt;20090710-0030&lt;BR /&gt;20090710-0100&lt;BR /&gt;20090710-0130&lt;BR /&gt;20090710-0200&lt;BR /&gt;/tmp/file2bbb.txt&lt;BR /&gt;20090710-0230&lt;BR /&gt;20090710-0300&lt;BR /&gt;20090710-0330&lt;BR /&gt;20090710-0400&lt;BR /&gt;20090710-0430&lt;BR /&gt;20090710-0500&lt;BR /&gt;20090710-0530&lt;BR /&gt;20090710-0600&lt;BR /&gt;20090710-0630&lt;BR /&gt;/tmp/file2ccc.txt&lt;BR /&gt;20090710-0700&lt;BR /&gt;20090710-0730&lt;BR /&gt;20090710-0800&lt;BR /&gt;20090710-0830&lt;BR /&gt;20090710-0900&lt;BR /&gt;20090710-0930&lt;BR /&gt;/tmp/file2/ddd.txt&lt;BR /&gt;/tmp/file2/eee.txt&lt;BR /&gt;/tmp/file2/fff.txt&lt;BR /&gt;/tmp/file2/ggg.txt&lt;BR /&gt;/tmp/file2/hhh.txt&lt;BR /&gt;20090710-1000&lt;BR /&gt;20090710-1030&lt;BR /&gt;20090710-1100&lt;BR /&gt;20090710-1130&lt;BR /&gt;20090710-1200&lt;BR /&gt;20090710-1230&lt;BR /&gt;20090710-1300&lt;BR /&gt;20090710-1330&lt;BR /&gt;&lt;BR /&gt;"&lt;BR /&gt;"</description>
      <pubDate>Mon, 13 Jul 2009 02:12:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458207#M359734</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-07-13T02:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458208#M359735</link>
      <description>use diff or comm, cmp cmds to check if they are same or for any diffs</description>
      <pubDate>Mon, 13 Jul 2009 04:41:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458208#M359735</guid>
      <dc:creator>Basheer_2</dc:creator>
      <dc:date>2009-07-13T04:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458209#M359736</link>
      <description>It looks like you will have to remove the "/tmp/file2" from file2 before you do the compare:&lt;BR /&gt;sed 's:/tmp/file2::' file2 &amp;gt; file2.new</description>
      <pubDate>Mon, 13 Jul 2009 08:13:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458209#M359736</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-13T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458210#M359737</link>
      <description>thx replies ,&lt;BR /&gt;&lt;BR /&gt;I tried the way :&lt;BR /&gt;sed 's:/tmp/file2::' file2 &amp;gt; file2.new &lt;BR /&gt;&lt;BR /&gt;it seems works for a part of requirement , this is really not easy for me to complete it ,  I am not familiar with script writing ,  can anyone provide more guidance ? thx much . &lt;BR /&gt;I am not familiar with script</description>
      <pubDate>Tue, 14 Jul 2009 01:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458210#M359737</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-07-14T01:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458211#M359738</link>
      <description>&amp;gt;it seems works for a part of requirement&lt;BR /&gt;&lt;BR /&gt;What is the requirement?  That the two files compare after removing all of the date strings?</description>
      <pubDate>Tue, 14 Jul 2009 05:48:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458211#M359738</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-14T05:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458212#M359739</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;no need to remove anything , what I would like is to find out any file ( in file 1 and file 2 )is missing only . &lt;BR /&gt;&lt;BR /&gt;thx</description>
      <pubDate>Tue, 14 Jul 2009 07:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458212#M359739</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-07-14T07:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458213#M359740</link>
      <description>&amp;gt;what I would like is to find out any file (in file 1 and file 2) is missing only.&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;fgrep ".txt" file1 &amp;gt; file1.new&lt;BR /&gt;sed -e 's:/tmp/file2/::' -e 's:/tmp/file2::' file2 | fgrep ".txt" &amp;gt; file2.new&lt;BR /&gt;diff file1.new file2.new&lt;BR /&gt;&lt;BR /&gt;rm -f file1.new file2.new</description>
      <pubDate>Tue, 14 Jul 2009 08:37:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458213#M359740</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-14T08:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458214#M359741</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;the files are in different servers , can advise how can I use your script to compre it  ? thx</description>
      <pubDate>Tue, 14 Jul 2009 10:07:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458214#M359741</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-07-14T10:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458215#M359742</link>
      <description>&amp;gt;the files are in different servers&lt;BR /&gt;&lt;BR /&gt;You will have to move the files to a common system.</description>
      <pubDate>Tue, 14 Jul 2009 14:46:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458215#M359742</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-14T14:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458216#M359743</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;Do you hv idea to do it ? thx</description>
      <pubDate>Wed, 15 Jul 2009 07:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458216#M359743</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-07-15T07:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Check consistency</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458217#M359744</link>
      <description>&amp;gt;Do you have idea to do it?&lt;BR /&gt;&lt;BR /&gt;You can use NFS to share files.  You can use ftp, rcp, sftp, scp to copy the files.&lt;BR /&gt;Or you could compute a checksum, then take that ascii string and compare with the other checksum.</description>
      <pubDate>Wed, 15 Jul 2009 08:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-consistency/m-p/4458217#M359744</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-15T08:33:22Z</dc:date>
    </item>
  </channel>
</rss>

