<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559237#M837765</link>
    <description>Start by reading man page of rcp.&lt;BR /&gt;&lt;BR /&gt;You need the syntax as follows.&lt;BR /&gt;&lt;BR /&gt;rcp -pr /source_dir/ remote_system:/destination/&lt;BR /&gt;&lt;BR /&gt;Anil</description>
    <pubDate>Tue, 07 Jun 2005 08:40:28 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2005-06-07T08:40:28Z</dc:date>
    <item>
      <title>RCP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559233#M837761</link>
      <description>Dear All&lt;BR /&gt;&lt;BR /&gt;i want to do rcp for a directory containing lots of directories and files from  machine x in /tmpsrc to machine y in /tmpdst&lt;BR /&gt;i think i shall write something like this&lt;BR /&gt;&lt;BR /&gt;rcp -r y:/tmpdst /tmpsrc &lt;BR /&gt;can someone tell me how to do it, or what i wrote is right or not ?&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 07 Jun 2005 06:46:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559233#M837761</guid>
      <dc:creator>Ahmed_41</dc:creator>
      <dc:date>2005-06-07T06:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: RCP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559234#M837762</link>
      <description>If you're coming from x and going to y, on machine y, you would run "rcp -r x:/tmpsrc /tmpdst".  If you are on machine x it would be "rcp -r /tmpsrc y:/tmpdst.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 07 Jun 2005 06:52:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559234#M837762</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-06-07T06:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: RCP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559235#M837763</link>
      <description>If you want subdirectories try the -p paramater as well.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 07 Jun 2005 07:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559235#M837763</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-06-07T07:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: RCP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559236#M837764</link>
      <description>Hey;&lt;BR /&gt;&lt;BR /&gt;The -r option as the OP specified gets the subdirs.  The -p option preserves ownership and file modes....&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Tue, 07 Jun 2005 08:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559236#M837764</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2005-06-07T08:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: RCP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559237#M837765</link>
      <description>Start by reading man page of rcp.&lt;BR /&gt;&lt;BR /&gt;You need the syntax as follows.&lt;BR /&gt;&lt;BR /&gt;rcp -pr /source_dir/ remote_system:/destination/&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Tue, 07 Jun 2005 08:40:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559237#M837765</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-06-07T08:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: RCP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559238#M837766</link>
      <description>&lt;BR /&gt; rcp(1)                                                               rcp(1)&lt;BR /&gt;&lt;BR /&gt;           -p             This option can be used to preserve (duplicate)&lt;BR /&gt;                          modification times and modes (permissions) of&lt;BR /&gt;                          source files, ignoring the current setting of the&lt;BR /&gt;                          umask file creation mode mask.  If this option is&lt;BR /&gt;                          specified, rcp preserves the sticky bit only if&lt;BR /&gt;                          the target user is superuser.&lt;BR /&gt;&lt;BR /&gt;                          If the -p option is not specified, rcp preserves&lt;BR /&gt;                          the mode and owner of dest_file if it already&lt;BR /&gt;                          exists; otherwise rcp uses the mode of the source&lt;BR /&gt;                          file modified by the umask on the destination&lt;BR /&gt;                          host.  Modification and access times of the&lt;BR /&gt;                          destination file are set to the time when the copy&lt;BR /&gt;                          was made.&lt;BR /&gt;***********************************&lt;BR /&gt; -r             This option can be used to recursively copy&lt;BR /&gt;                          directory subtrees rooted at the source directory&lt;BR /&gt;                          name.  If any directory subtrees are to be copied,&lt;BR /&gt;                          rcp recursively copies each subtree rooted at the&lt;BR /&gt;                          specified source directory name to directory&lt;BR /&gt;                          dest_dir.  If source_dir is being copied to an&lt;BR /&gt;                          existing directory of the same name, rcp creates a&lt;BR /&gt;                          new directory source_dir within dest_dir and&lt;BR /&gt;                          copies the subtree rooted at source_dir to&lt;BR /&gt;                          dest_dir/source_dir.  If dest_dir does not exist,&lt;BR /&gt;                          rcp first creates it and copies the subtree rooted&lt;BR /&gt;                          at source_dir to dest_dir and the output will be&lt;BR /&gt;                          similar irrespective of whether a wildcard&lt;BR /&gt;                          character (source_dir/*) is used for copying or&lt;BR /&gt;                          otherwise.&lt;BR /&gt;*************************************&lt;BR /&gt;And Finally,i am agree with Pete...&lt;BR /&gt;&lt;BR /&gt;Good luck,</description>
      <pubDate>Tue, 07 Jun 2005 08:40:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559238#M837766</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-06-07T08:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: RCP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559239#M837767</link>
      <description>Do you need to do this all the time? IE - keep the file in sync on both servers?&lt;BR /&gt;&lt;BR /&gt;If yes, then have a look at rdist&lt;BR /&gt;&lt;BR /&gt;I run it like so from cron:&lt;BR /&gt;&lt;BR /&gt;# Copy bwpadm across to the DR site.&lt;BR /&gt;15 01 * * *     /app/admin/drp/update-binaries.sh &amp;gt;/tmp/update-binaries.cron 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;# cat update-binaries.sh&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;&lt;BR /&gt;# Keep the DRP copy of the bwpadm up-to-date.&lt;BR /&gt;# Currently the files are in:&lt;BR /&gt;#&lt;BR /&gt;#       /home/bwpadm/DR&lt;BR /&gt;#&lt;BR /&gt;# See the rdist(1M) distfile for a list of exclusions.&lt;BR /&gt;&lt;BR /&gt;DRPDIR=/app/admin/drp&lt;BR /&gt;DRPHOST=svr102&lt;BR /&gt;&lt;BR /&gt;HOST=`/usr/bin/uname -n`&lt;BR /&gt;mount | grep /home &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;if [ $? -eq 0 ]&lt;BR /&gt;  then&lt;BR /&gt;  /usr/sbin/vgexport -p -s -v -m /home/bwpadm/DR/vg10.map /dev/vg10&lt;BR /&gt;  ( su - bwpadm -c "rdist -f $DRPDIR/distfile bwpadm"; ) 2&amp;gt;&amp;amp;1 |\&lt;BR /&gt;  tee $DRPDIR/drp.log 2&amp;gt;&amp;amp;1 |\&lt;BR /&gt;  mailx -s "bwpadm DRP rdist output" `cat /usr/local/mailadmin.list`&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cat distfile&lt;BR /&gt;BWPDR  = ( svr102 )&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# File systems to be copied over to the DR host.&lt;BR /&gt;# Don't use -R in install - so as not to remove files on destination host&lt;BR /&gt;BWPADM   = /home/bwpadm&lt;BR /&gt;&lt;BR /&gt;bwpadm: ( ${BWPADM} ) -&amp;gt; ( ${BWPDR} )&lt;BR /&gt;        install -w ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 07 Jun 2005 08:41:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp/m-p/3559239#M837767</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-06-07T08:41:11Z</dc:date>
    </item>
  </channel>
</rss>

