<?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: rcp script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900043#M403952</link>
    <description>I suggest program called rsync (rcp replacement).&lt;BR /&gt;&lt;BR /&gt;$ rsync -av -e remsh file1 serverb:/tmp&lt;BR /&gt;&lt;BR /&gt;This will copy file1 to serverb:/tmp/.file1.&lt;RANDOM_STRING&gt; until file is fully transferred, and only then /tmp/.file1.&lt;RANDOM_STRING&gt; will be moved to /tmp/file1.&lt;BR /&gt;&lt;BR /&gt;Read more about rsync at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://samba.org/rsync/" target="_blank"&gt;http://samba.org/rsync/&lt;/A&gt;&lt;/RANDOM_STRING&gt;&lt;/RANDOM_STRING&gt;</description>
    <pubDate>Thu, 05 May 2005 08:06:27 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2005-05-05T08:06:27Z</dc:date>
    <item>
      <title>rcp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900039#M403948</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have got the following problem with a small rcp script:&lt;BR /&gt;&lt;BR /&gt;rcp `grep -l "^3.*COV" DER*TAR*` &amp;lt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;As you can see this greps the dir for certain files and rcp's them to serverB.&lt;BR /&gt;&lt;BR /&gt;There is another script cronned on serverB that fetches the files rcp'ed from server A and this is where my problem begins. The other script is cronned for every 5 mins and fetches the files as soon as it sees them resulting in truncated files as the files may not have completed rcp'ing across. &lt;BR /&gt;&lt;BR /&gt;Is there a way of either renaming these files until they have been rcp'ed successfully and then renaming them back or checksuming the actual transfer to overcome this truncation issue????&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Thu, 05 May 2005 03:22:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900039#M403948</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-05-05T03:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: rcp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900040#M403949</link>
      <description>Hmmm... a checksum file sounds like a good idea. Make the file in the begining of the cron/rcp job and toss the files over to server A with the checksum being the last one copied. When done, remove(?) that file (or files) when all target files have finished going over.&lt;BR /&gt;&lt;BR /&gt;On serverB, look for the cheecksum file first, if there your copy is finished. Do want you need to those files and blow away the checksum.</description>
      <pubDate>Thu, 05 May 2005 06:01:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900040#M403949</guid>
      <dc:creator>Doug Burton</dc:creator>
      <dc:date>2005-05-05T06:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: rcp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900041#M403950</link>
      <description>You can do one simple solution as,&lt;BR /&gt;&lt;BR /&gt;create a file with size and file details of files which are going to be RCPied. RCP this file at last.&lt;BR /&gt;&lt;BR /&gt;Make your cron file to check the specific file contains this details. Your requirement will work correctly if you do like this.&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Thu, 05 May 2005 06:20:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900041#M403950</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-05-05T06:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: rcp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900042#M403951</link>
      <description>Dermot --&lt;BR /&gt;&lt;BR /&gt;I would suggest a lockfile.&lt;BR /&gt;&lt;BR /&gt;The script on machine A does a remshd and touches a file on machine B before it does its "real work".&lt;BR /&gt;&lt;BR /&gt;When its done it removes the lockfile.&lt;BR /&gt;&lt;BR /&gt;The script on machine B checks for the lockfile and wont process anything if the lockfile is present.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2005 07:38:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900042#M403951</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-05-05T07:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: rcp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900043#M403952</link>
      <description>I suggest program called rsync (rcp replacement).&lt;BR /&gt;&lt;BR /&gt;$ rsync -av -e remsh file1 serverb:/tmp&lt;BR /&gt;&lt;BR /&gt;This will copy file1 to serverb:/tmp/.file1.&lt;RANDOM_STRING&gt; until file is fully transferred, and only then /tmp/.file1.&lt;RANDOM_STRING&gt; will be moved to /tmp/file1.&lt;BR /&gt;&lt;BR /&gt;Read more about rsync at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://samba.org/rsync/" target="_blank"&gt;http://samba.org/rsync/&lt;/A&gt;&lt;/RANDOM_STRING&gt;&lt;/RANDOM_STRING&gt;</description>
      <pubDate>Thu, 05 May 2005 08:06:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900043#M403952</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-05T08:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: rcp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900044#M403953</link>
      <description>Thanks lads! &lt;BR /&gt;Very helpful indeed. Its really a toss up between the 'lockfile' and the 'rsync' solutions; great stuff.&lt;BR /&gt;Cheers!</description>
      <pubDate>Thu, 05 May 2005 10:04:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-script/m-p/4900044#M403953</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-05-05T10:04:13Z</dc:date>
    </item>
  </channel>
</rss>

