<?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: Diff command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342634#M343818</link>
    <description>&lt;!--!*#--&gt;&amp;gt; | diff - local-file-path&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I hope you kept that "-" I had.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; | diff localfilepath&lt;BR /&gt;&lt;BR /&gt;Well, duh.</description>
    <pubDate>Fri, 23 Jan 2009 10:04:37 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-01-23T10:04:37Z</dc:date>
    <item>
      <title>Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342622#M343806</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Can we use diff command to differentiate  files on two servers.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Thu, 22 Jan 2009 06:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342622#M343806</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2009-01-22T06:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342623#M343807</link>
      <description>You can only do this if one file is over NFS and you use that path.</description>
      <pubDate>Thu, 22 Jan 2009 06:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342623#M343807</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-22T06:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342624#M343808</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Can you give me one line script which will cat the file from other server with doing ssh/rmesh/rsh and can be diff with file present on current server.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Thu, 22 Jan 2009 06:25:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342624#M343808</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2009-01-22T06:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342625#M343809</link>
      <description>If you want to compare a local '/tmp/abc' file with the same file in another server 'xyz', you could do:&lt;BR /&gt;1) rcp xyz:/tmp/abc /tmp/abc.xyz &lt;BR /&gt;2) diff /tmp/abc /tmp/abc.xyz&lt;BR /&gt;&lt;BR /&gt;Once done, you could delete the 'abc.xyz' file from the local machine.&lt;BR /&gt;&lt;BR /&gt;This is one way. If you can NFS mount this directory from the other server, then you can directly do:&lt;BR /&gt;# diff /tmp/abc /mntpoint-of-server-dir/abc&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jan 2009 06:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342625#M343809</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2009-01-22T06:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342626#M343810</link>
      <description>&amp;gt;Can you give me one line script which will cat the file from other server with doing ssh/remsh/rsh and can be diff with file present on current server.&lt;BR /&gt;&lt;BR /&gt;Ah, right you can do that:&lt;BR /&gt;remsh remote -n "cat remote-file-path" | diff - local-file-path</description>
      <pubDate>Thu, 22 Jan 2009 07:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342626#M343810</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-22T07:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342627#M343811</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Still i am not able to diff these files.&lt;BR /&gt;&lt;BR /&gt;I am able to cat the file, but diff is not working.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Thu, 22 Jan 2009 11:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342627#M343811</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2009-01-22T11:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342628#M343812</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I have always used diff in one of two ways:&lt;BR /&gt;&lt;BR /&gt;1) took a copy of the files and ran it local&lt;BR /&gt;2) Established an nfs connection.&lt;BR /&gt;&lt;BR /&gt;Note that you can not use diff successfully on binary files&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 22 Jan 2009 12:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342628#M343812</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-01-22T12:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342629#M343813</link>
      <description>&amp;gt;I am able to cat the file, but diff is not working.&lt;BR /&gt;&lt;BR /&gt;I assume you can do:&lt;BR /&gt;remsh remote -n "cat remote-file-path" | more&lt;BR /&gt;&lt;BR /&gt;What command did you use?  What do you mean "not working"?  I hope you kept that "-" I had.</description>
      <pubDate>Thu, 22 Jan 2009 12:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342629#M343813</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-22T12:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342630#M343814</link>
      <description>&amp;gt;SEP: Note that you can not use diff successfully on binary files&lt;BR /&gt;&lt;BR /&gt;If you consider "success" as an exact match or just knowing the files are different, you can.</description>
      <pubDate>Thu, 22 Jan 2009 12:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342630#M343814</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-22T12:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342631#M343815</link>
      <description>what command exactly you are running ,have you copied the file locally,what is the error you are getting.&lt;BR /&gt;&lt;BR /&gt;diff file1 file2&lt;BR /&gt;is the command.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Kapil+</description>
      <pubDate>Thu, 22 Jan 2009 12:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342631#M343815</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2009-01-22T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342632#M343816</link>
      <description>I dont want to copy the file of another server to local server, i just want to cat that remote file and do diff with local file.&lt;BR /&gt;&lt;BR /&gt;Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;i am giving below command.&lt;BR /&gt;&lt;BR /&gt;remsh remoteserver -n " cat filepath" | diff localfilepath&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Fri, 23 Jan 2009 09:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342632#M343816</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2009-01-23T09:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342633#M343817</link>
      <description>Tried below full command&lt;BR /&gt;&lt;BR /&gt;serverA:/usr/local/ADMIN/crondir &amp;gt;remsh serverB -n "cat /usr/local/ADMIN/crondir/sysbackup.ksh" | diff sysbackup.ksh&lt;BR /&gt;        usage: diff [ -C n ] [ -S name ] [ -bcefhilnrstw ] dir1 dir2&lt;BR /&gt;                diff [-C n ] [ -bcefhintw ] file1 file2&lt;BR /&gt;                diff [ -D string ] [ -biw ] file1 file2&lt;BR /&gt;remsh_[7]: title:  not found&lt;BR /&gt;&lt;BR /&gt;remsh to serverB is working fine, tried with -n option &amp;amp; without -n option also, but no luck&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Jan 2009 09:50:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342633#M343817</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2009-01-23T09:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342634#M343818</link>
      <description>&lt;!--!*#--&gt;&amp;gt; | diff - local-file-path&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I hope you kept that "-" I had.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; | diff localfilepath&lt;BR /&gt;&lt;BR /&gt;Well, duh.</description>
      <pubDate>Fri, 23 Jan 2009 10:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342634#M343818</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-01-23T10:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342635#M343819</link>
      <description>&amp;gt;remsh remoteserver -n " cat filepath" | diff localfilepath&lt;BR /&gt;&lt;BR /&gt;As I mentioned twice, you need that "-".  That tells diff to compare the file vs stdin from the remsh/cat pipe.</description>
      <pubDate>Fri, 23 Jan 2009 10:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-command/m-p/4342635#M343819</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-23T10:43:43Z</dc:date>
    </item>
  </channel>
</rss>

