<?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: use ftp to move file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408333#M352722</link>
    <description>Hi Again,&lt;BR /&gt;&lt;BR /&gt;Typo error on my previous post. Script should be like this.&lt;BR /&gt;&lt;BR /&gt;#--------------------------------------------&lt;BR /&gt;# Move and Rename the file on remote server after copying&lt;BR /&gt;#--------------------------------------------&lt;BR /&gt;ftp &amp;lt;&amp;lt;**&lt;BR /&gt;open abc.company.com&lt;BR /&gt;rename test.txt /tmp/test.txt.`date +'%d%b%y`&lt;BR /&gt;bye&lt;BR /&gt;**&lt;BR /&gt;&lt;BR /&gt;Sincere apolosize for the mistake.</description>
    <pubDate>Mon, 27 Apr 2009 06:24:02 GMT</pubDate>
    <dc:creator>Ganesan R</dc:creator>
    <dc:date>2009-04-27T06:24:02Z</dc:date>
    <item>
      <title>use ftp to move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408326#M352715</link>
      <description>I use ftp to access the remote server , everything works fine , but I would like to ask can I move the file in the ftp server to another directory ( just like "mv myfile temp" - move myfile to temp directory in linux ) , I read thought the man page , but could not find it , can advise what can i do ? thx</description>
      <pubDate>Mon, 27 Apr 2009 01:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408326#M352715</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-27T01:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: use ftp to move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408327#M352716</link>
      <description>The command is rename, not mv. ftp is a multi-OS tool so the commands are specific to ftp. Note also that the actual commands that work depend not only on the client but also the destination. Use the ? command in an ftp session to see what is available.</description>
      <pubDate>Mon, 27 Apr 2009 01:55:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408327#M352716</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-04-27T01:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: use ftp to move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408328#M352717</link>
      <description>the reply ,&lt;BR /&gt;&lt;BR /&gt;I read ? but not found move , mv command , the rename is not change the file name , I really want to move the file to backup directory in remote server not just rename , can ftp do it ? thx</description>
      <pubDate>Mon, 27 Apr 2009 02:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408328#M352717</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-27T02:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: use ftp to move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408329#M352718</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I remember sftp have options to rename the file from old path to newpath&lt;BR /&gt;&lt;BR /&gt;Shankar</description>
      <pubDate>Mon, 27 Apr 2009 04:32:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408329#M352718</guid>
      <dc:creator>Shankar_6</dc:creator>
      <dc:date>2009-04-27T04:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: use ftp to move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408330#M352719</link>
      <description>Hi,&lt;BR /&gt;You can used cd and lcd &lt;BR /&gt;cd for remote directiory and &lt;BR /&gt;lcd for local directiory.&lt;BR /&gt;then move the desire file to remote location and delete the file with delete command.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Mon, 27 Apr 2009 05:10:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408330#M352719</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-04-27T05:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: use ftp to move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408331#M352720</link>
      <description>thx Suraj K Sankari  ,&lt;BR /&gt;&lt;BR /&gt;you said "then move the ..." , how to move , can advise what command that I can use ? thx</description>
      <pubDate>Mon, 27 Apr 2009 06:14:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408331#M352720</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-27T06:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: use ftp to move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408332#M352721</link>
      <description>Hi Heaman1,&lt;BR /&gt;&lt;BR /&gt;Fortunately move command is not available on ftp. Indeed rename is doing the same function. I assume that you are getting a file called test.txt from remote server through ftp and want to move to backup directory after fetching the file.&lt;BR /&gt;&lt;BR /&gt;You just need to add this lines in your script after copying the files.&lt;BR /&gt;&lt;BR /&gt;#--------------------------------------------&lt;BR /&gt;# Move and Rename the file on remote server # after copying&lt;BR /&gt;#--------------------------------------------&lt;BR /&gt;ftp &amp;lt;&amp;lt;**&lt;BR /&gt;open abc.company.com&lt;BR /&gt;rename test.txt /tmp/test.txt.`date +'%d%b%y`bye&lt;BR /&gt;**&lt;BR /&gt;&lt;BR /&gt;This will remove the source file and move to /tmp directory as test.txt.27Apr09&lt;BR /&gt;&lt;BR /&gt;Instead of /tmp, I would suggest you to create a backup directory on user home directory(or somewhere) and move over there.&lt;BR /&gt;&lt;BR /&gt;rename test.txt ./backup/test.txt.`date +'%d%b%y`</description>
      <pubDate>Mon, 27 Apr 2009 06:21:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408332#M352721</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-04-27T06:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: use ftp to move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408333#M352722</link>
      <description>Hi Again,&lt;BR /&gt;&lt;BR /&gt;Typo error on my previous post. Script should be like this.&lt;BR /&gt;&lt;BR /&gt;#--------------------------------------------&lt;BR /&gt;# Move and Rename the file on remote server after copying&lt;BR /&gt;#--------------------------------------------&lt;BR /&gt;ftp &amp;lt;&amp;lt;**&lt;BR /&gt;open abc.company.com&lt;BR /&gt;rename test.txt /tmp/test.txt.`date +'%d%b%y`&lt;BR /&gt;bye&lt;BR /&gt;**&lt;BR /&gt;&lt;BR /&gt;Sincere apolosize for the mistake.</description>
      <pubDate>Mon, 27 Apr 2009 06:24:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408333#M352722</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-04-27T06:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: use ftp to move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408334#M352723</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;I tried it , but pop error &lt;BR /&gt;&lt;BR /&gt;350 Ready for RNTO.&lt;BR /&gt;550 Rename failed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;can advise what is wrong ? thx</description>
      <pubDate>Mon, 27 Apr 2009 07:07:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408334#M352723</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-27T07:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: use ftp to move file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408335#M352724</link>
      <description>the all ,&lt;BR /&gt;&lt;BR /&gt;this is permission problem , i got it already , thx for your help .&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Apr 2009 07:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/use-ftp-to-move-file/m-p/4408335#M352724</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-27T07:10:30Z</dc:date>
    </item>
  </channel>
</rss>

