<?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: Move file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844169#M273907</link>
    <description>you can implement rsync to copy files between two servers. This would be useful for automation and will sync only for changed files to copy. You can download and install it on both servers.</description>
    <pubDate>Wed, 16 Aug 2006 08:10:46 GMT</pubDate>
    <dc:creator>IT_2007</dc:creator>
    <dc:date>2006-08-16T08:10:46Z</dc:date>
    <item>
      <title>Move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844162#M273900</link>
      <description>I have two hosts ( host A &amp;amp; host B ), they are in different locations , there are many files will be exchange among them , from time to time , some files are moved from host A to host B , and some files are moved from host B to host A , two hosts are connected via leased line , sometimes the leased line is not stable that the connection is broken , so the file exchange job may be fail , if I would like to make sure the file exchange is successful , can advise what is the best way ? if tar the files before move and check the file size in both server , is the possible , can advise how to do it ? thx</description>
      <pubDate>Wed, 16 Aug 2006 00:37:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844162#M273900</guid>
      <dc:creator>nash11</dc:creator>
      <dc:date>2006-08-16T00:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844163#M273901</link>
      <description>You can use cksum to verify the checksum of the file on both the machines. This is the most authentic way to find out if the files have been copied correctly and checksums match.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Wed, 16 Aug 2006 00:55:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844163#M273901</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-08-16T00:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844164#M273902</link>
      <description>thx reply and suggestion ,&lt;BR /&gt;&lt;BR /&gt;can advise how to use cksum , is it easy to implement ? thx</description>
      <pubDate>Wed, 16 Aug 2006 01:33:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844164#M273902</guid>
      <dc:creator>nash11</dc:creator>
      <dc:date>2006-08-16T01:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844165#M273903</link>
      <description>The cksum command is available by default.&lt;BR /&gt;See "man cksum" for more info.&lt;BR /&gt;You may run the command "cksum file" before and after the transfer and compare the results to ensure the file is ok.&lt;BR /&gt;You probably can automate this with a script.</description>
      <pubDate>Wed, 16 Aug 2006 01:43:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844165#M273903</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-08-16T01:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844166#M273904</link>
      <description>thx reply ,&lt;BR /&gt;I know cksum is used for checking the size of the file by byte , that's good but seems too low level . I just want to make sure the file is moved to remote site correctly , eg. if the leased line is broken then stop to move file until the line is resumed etc. thx</description>
      <pubDate>Wed, 16 Aug 2006 01:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844166#M273904</guid>
      <dc:creator>nash11</dc:creator>
      <dc:date>2006-08-16T01:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844167#M273905</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;cksum isn't too low level - you need to know if the transmission from A to B was completely and errorfree, so how should a check work without looking hard at the files?&lt;BR /&gt;&lt;BR /&gt;I would tar+gzip the files to send, so the un-tar and gunzip can act as additional error checkers.&lt;BR /&gt;My example assumes ssh/scp connection, but can be adopted to other remote commands easily:&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;tar cf - files and dirs to send | gzip &amp;gt;toremote.tar.gz&lt;BR /&gt;cksum toremote.tar.gz &amp;gt;toremote.cksum&lt;BR /&gt;if scp toremote.tar.gz hostB:/todir&lt;BR /&gt;then :&lt;BR /&gt;else&lt;BR /&gt; print -u2 ERROR: file transfer failed&lt;BR /&gt; exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;ssh hostB cksum /todir/toremote.tar.gz &amp;gt;fromremote.cksum&lt;BR /&gt;&lt;BR /&gt;if cmp fromremote.cksum toremote.cksum&lt;BR /&gt;then ssh hostB 'cd wherever &amp;amp;&amp;amp; gunzip else&lt;BR /&gt; print -u2 "ERROR: hostB:/todir/toremote.tar.gz is corrupted"&lt;BR /&gt; exit 2&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Wed, 16 Aug 2006 04:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844167#M273905</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-08-16T04:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844168#M273906</link>
      <description>Hi Nash, &lt;BR /&gt;&lt;BR /&gt;You can also use "md5sum". &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 16 Aug 2006 04:19:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844168#M273906</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-08-16T04:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844169#M273907</link>
      <description>you can implement rsync to copy files between two servers. This would be useful for automation and will sync only for changed files to copy. You can download and install it on both servers.</description>
      <pubDate>Wed, 16 Aug 2006 08:10:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844169#M273907</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-08-16T08:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844170#M273908</link>
      <description>you can create a sum file for the .tar &lt;BR /&gt;e.g : sum file.tar &amp;gt; file.tar.sum&lt;BR /&gt;after you finish to copy the file you can run sum on the file.tar : sum file.tar &lt;BR /&gt;on target and see if it's equal to the file.tar.sum</description>
      <pubDate>Wed, 16 Aug 2006 16:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file/m-p/3844170#M273908</guid>
      <dc:creator>yhm_1</dc:creator>
      <dc:date>2006-08-16T16:50:10Z</dc:date>
    </item>
  </channel>
</rss>

