<?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: ftam(FCP) problem during loop! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031971#M574422</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I paste the code, for cleariness.&lt;BR /&gt; &lt;BR /&gt;#ftam datac&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;for i in `fls y@datac:/home/y/test1`&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt;if [  $i != "/home/y/test1:" ]&lt;BR /&gt;then&lt;BR /&gt;filecut = `echo $i | cut -c19-27`&lt;BR /&gt;echo "processing" $filecut&lt;BR /&gt;fcp y@datac:/home/y/test1/$filecut /home/x/ftambackup/$filecut&lt;BR /&gt;&lt;BR /&gt;fmv y@datac:/home/y/test1/$filecut /home/x/ftam2/$filecut&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;sleep 30&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;###########&lt;BR /&gt;&lt;BR /&gt;I have no ftam on my server, so i simply lloked at the code.&lt;BR /&gt;&lt;BR /&gt;look here: &lt;BR /&gt;filecut = `echo $i | cut -c19-27`&lt;BR /&gt;&lt;BR /&gt;i tested this single line, with&lt;BR /&gt;&lt;BR /&gt;echo y@datac:/home/y/test1 | cut -c19-27&lt;BR /&gt;&lt;BR /&gt;and the result is&lt;BR /&gt;st1&lt;BR /&gt;&lt;BR /&gt;i think that there is a mis-cut.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try adding a &lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;as a second line, so we will see what is going on, and let it a second run with debug enabled.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;#ftam datac&lt;BR /&gt;set -x&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;for i in `fls y@datac:/home/y/test1`&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt;if [  $i != "/home/y/test1:" ]&lt;BR /&gt;then&lt;BR /&gt;filecut = `echo $i | cut -c19-27`&lt;BR /&gt;echo "Value of i: "$i&lt;BR /&gt;echo "Value of filecut: "$filecut&lt;BR /&gt;&lt;BR /&gt;echo "processing" $filecut&lt;BR /&gt;echo "fcp y@datac:/home/y/test1/$filecut /home/x/ftambackup/$filecut"&lt;BR /&gt;&lt;BR /&gt;fcp y@datac:/home/y/test1/$filecut /home/x/ftambackup/$filecut&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo "fmv y@datac:/home/y/test1/$filecut /home/x/ftam2/$filecut"&lt;BR /&gt;&lt;BR /&gt;fmv y@datac:/home/y/test1/$filecut /home/x/ftam2/$filecut&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;sleep 30&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think that the filename is mis-interpreted.&lt;BR /&gt;&lt;BR /&gt;  HTH,&lt;BR /&gt;   Massimo&lt;BR /&gt;</description>
    <pubDate>Thu, 24 Jul 2003 11:08:25 GMT</pubDate>
    <dc:creator>Massimo Bianchi</dc:creator>
    <dc:date>2003-07-24T11:08:25Z</dc:date>
    <item>
      <title>ftam(FCP) problem during loop!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031968#M574419</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;When I am trying to copy any Ftam file from one remote host to local host it works but if I want to copy with a loop I can not do so . Giving error "The file is a directory which already exists. It cannot be recreated(Log instance 14856, FTAM error_id 3023 = "Create override not possible"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me the probable reason for it.And also the solution for it . I am attacting the attachment for your reference.&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jul 2003 05:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031968#M574419</guid>
      <dc:creator>Utpal Krishna</dc:creator>
      <dc:date>2003-07-24T05:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: ftam(FCP) problem during loop!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031969#M574420</link>
      <description>Are you sure in ../test1/ there are only files ?&lt;BR /&gt;&lt;BR /&gt;I think in your script you should test it first.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Massimo&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jul 2003 06:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031969#M574420</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-07-24T06:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: ftam(FCP) problem during loop!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031970#M574421</link>
      <description>Yes I have tested there are only files under &lt;BR /&gt;y@datac:/home/y/test1&lt;BR /&gt;But the script is not working.&lt;BR /&gt;If possible let me know the solution&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Utpal</description>
      <pubDate>Thu, 24 Jul 2003 10:04:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031970#M574421</guid>
      <dc:creator>Utpal Krishna</dc:creator>
      <dc:date>2003-07-24T10:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: ftam(FCP) problem during loop!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031971#M574422</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I paste the code, for cleariness.&lt;BR /&gt; &lt;BR /&gt;#ftam datac&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;for i in `fls y@datac:/home/y/test1`&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt;if [  $i != "/home/y/test1:" ]&lt;BR /&gt;then&lt;BR /&gt;filecut = `echo $i | cut -c19-27`&lt;BR /&gt;echo "processing" $filecut&lt;BR /&gt;fcp y@datac:/home/y/test1/$filecut /home/x/ftambackup/$filecut&lt;BR /&gt;&lt;BR /&gt;fmv y@datac:/home/y/test1/$filecut /home/x/ftam2/$filecut&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;sleep 30&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;###########&lt;BR /&gt;&lt;BR /&gt;I have no ftam on my server, so i simply lloked at the code.&lt;BR /&gt;&lt;BR /&gt;look here: &lt;BR /&gt;filecut = `echo $i | cut -c19-27`&lt;BR /&gt;&lt;BR /&gt;i tested this single line, with&lt;BR /&gt;&lt;BR /&gt;echo y@datac:/home/y/test1 | cut -c19-27&lt;BR /&gt;&lt;BR /&gt;and the result is&lt;BR /&gt;st1&lt;BR /&gt;&lt;BR /&gt;i think that there is a mis-cut.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try adding a &lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;as a second line, so we will see what is going on, and let it a second run with debug enabled.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;#ftam datac&lt;BR /&gt;set -x&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;for i in `fls y@datac:/home/y/test1`&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt;if [  $i != "/home/y/test1:" ]&lt;BR /&gt;then&lt;BR /&gt;filecut = `echo $i | cut -c19-27`&lt;BR /&gt;echo "Value of i: "$i&lt;BR /&gt;echo "Value of filecut: "$filecut&lt;BR /&gt;&lt;BR /&gt;echo "processing" $filecut&lt;BR /&gt;echo "fcp y@datac:/home/y/test1/$filecut /home/x/ftambackup/$filecut"&lt;BR /&gt;&lt;BR /&gt;fcp y@datac:/home/y/test1/$filecut /home/x/ftambackup/$filecut&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo "fmv y@datac:/home/y/test1/$filecut /home/x/ftam2/$filecut"&lt;BR /&gt;&lt;BR /&gt;fmv y@datac:/home/y/test1/$filecut /home/x/ftam2/$filecut&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;sleep 30&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think that the filename is mis-interpreted.&lt;BR /&gt;&lt;BR /&gt;  HTH,&lt;BR /&gt;   Massimo&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jul 2003 11:08:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031971#M574422</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-07-24T11:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: ftam(FCP) problem during loop!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031972#M574423</link>
      <description>Thanks everybody. I have got the solution . Now I have written a script with that I can Automatized my file transfer using FTAM..&lt;BR /&gt;&lt;BR /&gt;Utpal</description>
      <pubDate>Wed, 30 Jul 2003 06:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftam-fcp-problem-during-loop/m-p/3031972#M574423</guid>
      <dc:creator>Utpal Krishna</dc:creator>
      <dc:date>2003-07-30T06:59:17Z</dc:date>
    </item>
  </channel>
</rss>

