<?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 rcp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835728#M272409</link>
    <description>I want to copy files from prod server to test server&lt;BR /&gt;/etc/passwd&lt;BR /&gt; /etc/hosts&lt;BR /&gt;/home/* ( need to exclude root )&lt;BR /&gt;and  /tcb/*&lt;BR /&gt;How can I write a script which will do the above task.&lt;BR /&gt;Want the owner and perm to be the same&lt;BR /&gt;</description>
    <pubDate>Wed, 02 Aug 2006 06:53:31 GMT</pubDate>
    <dc:creator>Aggy</dc:creator>
    <dc:date>2006-08-02T06:53:31Z</dc:date>
    <item>
      <title>rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835728#M272409</link>
      <description>I want to copy files from prod server to test server&lt;BR /&gt;/etc/passwd&lt;BR /&gt; /etc/hosts&lt;BR /&gt;/home/* ( need to exclude root )&lt;BR /&gt;and  /tcb/*&lt;BR /&gt;How can I write a script which will do the above task.&lt;BR /&gt;Want the owner and perm to be the same&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Aug 2006 06:53:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835728#M272409</guid>
      <dc:creator>Aggy</dc:creator>
      <dc:date>2006-08-02T06:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835729#M272410</link>
      <description>Hi,&lt;BR /&gt;do&lt;BR /&gt;rcp -rp /etc/passwd target:/etc&lt;BR /&gt;rcp -rp /etc/hosts target:/etc&lt;BR /&gt;&lt;BR /&gt;in scripts from command line&lt;BR /&gt;&lt;BR /&gt;for i in /etc/passwd /etc/hosts /home /tcb&lt;BR /&gt;do&lt;BR /&gt;echo $i&lt;BR /&gt;rcp -rp $i &lt;TARGET server=""&gt;:$i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Chan&lt;/TARGET&gt;</description>
      <pubDate>Wed, 02 Aug 2006 07:02:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835729#M272410</guid>
      <dc:creator>Chan 007</dc:creator>
      <dc:date>2006-08-02T07:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835730#M272411</link>
      <description>Thanks Chan&lt;BR /&gt;&lt;BR /&gt;I had used the rcp command but my main issue was to exclude root from /home and copy the rest /home/* to the test prod</description>
      <pubDate>Wed, 02 Aug 2006 07:30:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835730#M272411</guid>
      <dc:creator>Aggy</dc:creator>
      <dc:date>2006-08-02T07:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835731#M272412</link>
      <description>Not with rcp. Take tar ball and put it over to another system. tar has option to exclude a particular dir from it.&lt;BR /&gt;&lt;BR /&gt;man tar for details.</description>
      <pubDate>Wed, 02 Aug 2006 07:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835731#M272412</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-08-02T07:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835732#M272413</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Do this getting rid of root from /home&lt;BR /&gt;&lt;BR /&gt;ls -lrt |grep -v root|awk '{print $9}' &amp;gt;/tmp/test&lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;&lt;BR /&gt;for i in $(cat /tmp/test)&lt;BR /&gt;do&lt;BR /&gt;rcp -rp /home/$i &lt;TARGET&gt;:/home&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;For tcp best way is to cp the "r/root"  directory on the target server to /tmp.&lt;BR /&gt;&lt;BR /&gt;once copying is complete mv /tmp/root /r/root&lt;BR /&gt;&lt;BR /&gt;Chan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/TARGET&gt;</description>
      <pubDate>Wed, 02 Aug 2006 07:40:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3835732#M272413</guid>
      <dc:creator>Chan 007</dc:creator>
      <dc:date>2006-08-02T07:40:51Z</dc:date>
    </item>
  </channel>
</rss>

