<?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: Need some debugging here! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-debugging-here/m-p/2712666#M60992</link>
    <description>Ok, this is what happened. First of all these dirs will be processed by the for loop ..&lt;BR /&gt;1) /home/mad/tst&lt;BR /&gt;2) /home/mad/tst/tst2&lt;BR /&gt;3) /home/mad/tst/tst3&lt;BR /&gt;&lt;BR /&gt;The first loop will copied "tst" dir and all other dirs under it to $SERVER:/home/mad. So after the 1st for loop, you would have this in $SERVER already ..&lt;BR /&gt;&lt;BR /&gt;/home/mad/tst&lt;BR /&gt;/home/mad/tst/tst2&lt;BR /&gt;/home/mad/tst/tst3&lt;BR /&gt;&lt;BR /&gt;because it's a recursive copy "-r".&lt;BR /&gt;&lt;BR /&gt;Now going into the 2nd loop, "/home/mad/tst/tst2" directory will be copied over to /home/mad which result in the destination server having ..&lt;BR /&gt;&lt;BR /&gt;/home/mad/tst2&lt;BR /&gt;&lt;BR /&gt;Same argument when it goes into the 3rd loop, which wil result in ..&lt;BR /&gt;&lt;BR /&gt;/home/mad/tst3 be created.&lt;BR /&gt;&lt;BR /&gt;If your goal to to copied everything under /home/mad/tst (including tst) to another server in /home/mad, you don't need the for loop since you've already given the "-r" option in your rcp command.</description>
    <pubDate>Sun, 28 Apr 2002 18:29:13 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-04-28T18:29:13Z</dc:date>
    <item>
      <title>Need some debugging here!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-debugging-here/m-p/2712665#M60991</link>
      <description>I wrote the small script attached and am using it to transfer complete directories from one server to another.  However, the problem I am encountering is that the subdirectories are being created twice, i.e.&lt;BR /&gt;&lt;BR /&gt;I specify local directory:  /home/mad/tst&lt;BR /&gt;this one also has within directories tst2 and tst3&lt;BR /&gt;&lt;BR /&gt;Then I specify the remote directory to be: /home/mad&lt;BR /&gt;&lt;BR /&gt;It's creating the following:&lt;BR /&gt;&lt;BR /&gt;/home/mad/tst&lt;BR /&gt;/home/mad/tst/tst2&lt;BR /&gt;/home/mad/tst/tst3&lt;BR /&gt;and also...&lt;BR /&gt;/home/mad/tst2&lt;BR /&gt;/home/mad/tst3&lt;BR /&gt;&lt;BR /&gt;I desire the first three, but the last two are not what I intended, any idea why those are being created?</description>
      <pubDate>Sun, 28 Apr 2002 18:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-debugging-here/m-p/2712665#M60991</guid>
      <dc:creator>MAD_2</dc:creator>
      <dc:date>2002-04-28T18:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need some debugging here!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-debugging-here/m-p/2712666#M60992</link>
      <description>Ok, this is what happened. First of all these dirs will be processed by the for loop ..&lt;BR /&gt;1) /home/mad/tst&lt;BR /&gt;2) /home/mad/tst/tst2&lt;BR /&gt;3) /home/mad/tst/tst3&lt;BR /&gt;&lt;BR /&gt;The first loop will copied "tst" dir and all other dirs under it to $SERVER:/home/mad. So after the 1st for loop, you would have this in $SERVER already ..&lt;BR /&gt;&lt;BR /&gt;/home/mad/tst&lt;BR /&gt;/home/mad/tst/tst2&lt;BR /&gt;/home/mad/tst/tst3&lt;BR /&gt;&lt;BR /&gt;because it's a recursive copy "-r".&lt;BR /&gt;&lt;BR /&gt;Now going into the 2nd loop, "/home/mad/tst/tst2" directory will be copied over to /home/mad which result in the destination server having ..&lt;BR /&gt;&lt;BR /&gt;/home/mad/tst2&lt;BR /&gt;&lt;BR /&gt;Same argument when it goes into the 3rd loop, which wil result in ..&lt;BR /&gt;&lt;BR /&gt;/home/mad/tst3 be created.&lt;BR /&gt;&lt;BR /&gt;If your goal to to copied everything under /home/mad/tst (including tst) to another server in /home/mad, you don't need the for loop since you've already given the "-r" option in your rcp command.</description>
      <pubDate>Sun, 28 Apr 2002 18:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-debugging-here/m-p/2712666#M60992</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-28T18:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need some debugging here!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-debugging-here/m-p/2712667#M60993</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The reason is that you are using multiple loops here above a recursive copy. The 'for' loop is not necessary there. You can just remove it and use only the rcp -r command. This will copy the subdirectories to the remote hosts.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Sun, 28 Apr 2002 18:49:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-debugging-here/m-p/2712667#M60993</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-04-28T18:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need some debugging here!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-some-debugging-here/m-p/2712668#M60994</link>
      <description>Thanks, now it's working the way I wanted it to work!</description>
      <pubDate>Sun, 28 Apr 2002 19:22:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-some-debugging-here/m-p/2712668#M60994</guid>
      <dc:creator>MAD_2</dc:creator>
      <dc:date>2002-04-28T19:22:29Z</dc:date>
    </item>
  </channel>
</rss>

