<?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: remote diffs (running diff on remote directories) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-diffs-running-diff-on-remote-directories/m-p/2536158#M25978</link>
    <description>Hi David, &lt;BR /&gt;&lt;BR /&gt;No diff w/o NFS will not do this but if all you want to know is are the two files different&lt;BR /&gt;there is a way - use cksum or sum.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;REMOTE_HOST=elvis&lt;BR /&gt;FILES="/tmp/myfile1 /tmp/myfile2"&lt;BR /&gt;for X in ${FILES}&lt;BR /&gt;  do&lt;BR /&gt;     LOCAL=`cksum ${X}`&lt;BR /&gt;     REM=`remsh ${REMOTE_HOST} cksum ${X}`&lt;BR /&gt;     if [ "${LOCAL}" != "${REM}" ]&lt;BR /&gt;       then&lt;BR /&gt;         echo "File ${X} different"&lt;BR /&gt;       fi&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;BTW - I have run NFS over slow links.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 04 Jun 2001 20:07:16 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-06-04T20:07:16Z</dc:date>
    <item>
      <title>remote diffs (running diff on remote directories)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-diffs-running-diff-on-remote-directories/m-p/2536157#M25977</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I was woundering if there was a way to run diff against a local and remote directory. I thought about nfs mounting the remote file system but the network link speed we have is less than that supported by HP-UX (according to the documentation). Ideally I thought maybe there was a command similar to rcp where you could specify the hostname:/path&lt;BR /&gt;&lt;BR /&gt;e.g. diff remote_host:/path/to/check local_host:/path/to/check&lt;BR /&gt;&lt;BR /&gt;Is there such a beast?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;David</description>
      <pubDate>Mon, 04 Jun 2001 19:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-diffs-running-diff-on-remote-directories/m-p/2536157#M25977</guid>
      <dc:creator>David Gartner</dc:creator>
      <dc:date>2001-06-04T19:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: remote diffs (running diff on remote directories)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-diffs-running-diff-on-remote-directories/m-p/2536158#M25978</link>
      <description>Hi David, &lt;BR /&gt;&lt;BR /&gt;No diff w/o NFS will not do this but if all you want to know is are the two files different&lt;BR /&gt;there is a way - use cksum or sum.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;REMOTE_HOST=elvis&lt;BR /&gt;FILES="/tmp/myfile1 /tmp/myfile2"&lt;BR /&gt;for X in ${FILES}&lt;BR /&gt;  do&lt;BR /&gt;     LOCAL=`cksum ${X}`&lt;BR /&gt;     REM=`remsh ${REMOTE_HOST} cksum ${X}`&lt;BR /&gt;     if [ "${LOCAL}" != "${REM}" ]&lt;BR /&gt;       then&lt;BR /&gt;         echo "File ${X} different"&lt;BR /&gt;       fi&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;BTW - I have run NFS over slow links.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jun 2001 20:07:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-diffs-running-diff-on-remote-directories/m-p/2536158#M25978</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-06-04T20:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: remote diffs (running diff on remote directories)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-diffs-running-diff-on-remote-directories/m-p/2536159#M25979</link>
      <description>Thanks for the prompt answer Clay.&lt;BR /&gt;&lt;BR /&gt;In my case your approach is certainly do-able but there are a large number of files and directories under a particular root dir that I want to compare. That's where the recursive feature of "diff" would come in handy 8-)&lt;BR /&gt;&lt;BR /&gt;Any other suggestions?&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Mon, 04 Jun 2001 22:04:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-diffs-running-diff-on-remote-directories/m-p/2536159#M25979</guid>
      <dc:creator>David Gartner</dc:creator>
      <dc:date>2001-06-04T22:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: remote diffs (running diff on remote directories)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-diffs-running-diff-on-remote-directories/m-p/2536160#M25980</link>
      <description>Whay don't you just expand Clay's idea and built the recursion yourself?&lt;BR /&gt;&lt;BR /&gt;$local_dir=LOCALDIR&lt;BR /&gt;$remote_dir=REMOTEDIR&lt;BR /&gt;$remote_sys=REMOTESYSTEM&lt;BR /&gt;&lt;BR /&gt;find $local_dir | xargs -i cksum {} &amp;gt; local.out&lt;BR /&gt;remsh $remote_sys "find $remote_dir | xargs -i cksum {}" &amp;gt; remote.out&lt;BR /&gt;diff local.out remote.out&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Ovidiu</description>
      <pubDate>Tue, 05 Jun 2001 18:26:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-diffs-running-diff-on-remote-directories/m-p/2536160#M25980</guid>
      <dc:creator>Ovidiu D. Raita</dc:creator>
      <dc:date>2001-06-05T18:26:11Z</dc:date>
    </item>
  </channel>
</rss>

