<?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: Unix ftp command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-ftp-command/m-p/3392688#M705797</link>
    <description>&lt;BR /&gt;You could use "rcp" on your windows box to PULL the files and directories. cd WINDOZE_PATH then rcp -brp HPUXhost:/path .&lt;BR /&gt;&lt;BR /&gt;If you want conditional FTP'ing then I'd suggest you use perl. Look at Clay's response here:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=550649" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=550649&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Mon, 04 Oct 2004 09:15:02 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2004-10-04T09:15:02Z</dc:date>
    <item>
      <title>Unix ftp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-ftp-command/m-p/3392687#M705796</link>
      <description>I am running a script on one Unix machine and need to transfer(ftp) directory &amp;amp; files from this unix machine to a Windows system.&lt;BR /&gt;The problem is how to create the directory structure on the Windows machine from within the script.&lt;BR /&gt;Actually the creation of directory structure on the windows machine is conditional.&lt;BR /&gt;How do i check whether a particular directory structure is existent on the windows machine within the ftp session.&lt;BR /&gt;&lt;BR /&gt;Now in between how to check whether (say) "test" directory exists in the ftproot of the target machine..&lt;BR /&gt;&lt;BR /&gt;I m using the following code:&lt;BR /&gt; { echo "open $FTP_IP_ADDRESS&lt;BR /&gt; user $FTP_USER_NAME $FTP_PASSWORD"&lt;BR /&gt;&lt;BR /&gt;        &lt;COMMAND&gt; &lt;BR /&gt;&lt;BR /&gt; } | ftp -v -i -n&lt;BR /&gt;&lt;BR /&gt;If I substitute &lt;COMMAND&gt; with the following  code:&lt;BR /&gt;{ if [ -d test ] ; then echo " dir there " ; else echo "dir not" ; fi }&lt;BR /&gt;&lt;BR /&gt;, then it says invalid command..&lt;BR /&gt;&lt;BR /&gt;On the other hand if I substitute &lt;COMMAND&gt; with the following  code:&lt;BR /&gt;! { if [ -d test ] ; then echo " dir there " ; else echo "dir not" ; fi }&lt;BR /&gt;&lt;BR /&gt;, then checks the local directory of the Unix machine.&lt;BR /&gt;Pls send your suggestions&lt;BR /&gt;Pls IGNORE the case where I can tar and zip the required directory structure to a file and then ftp that file to the target machine.&lt;/COMMAND&gt;&lt;/COMMAND&gt;&lt;/COMMAND&gt;</description>
      <pubDate>Mon, 04 Oct 2004 09:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-ftp-command/m-p/3392687#M705796</guid>
      <dc:creator>Dinesh Abrol</dc:creator>
      <dc:date>2004-10-04T09:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unix ftp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-ftp-command/m-p/3392688#M705797</link>
      <description>&lt;BR /&gt;You could use "rcp" on your windows box to PULL the files and directories. cd WINDOZE_PATH then rcp -brp HPUXhost:/path .&lt;BR /&gt;&lt;BR /&gt;If you want conditional FTP'ing then I'd suggest you use perl. Look at Clay's response here:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=550649" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=550649&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 04 Oct 2004 09:15:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-ftp-command/m-p/3392688#M705797</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-10-04T09:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unix ftp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-ftp-command/m-p/3392689#M705798</link>
      <description>Hi there.&lt;BR /&gt;Have you given it the complete path including the drive ?&lt;BR /&gt;like 'd:\test' &lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes</description>
      <pubDate>Mon, 04 Oct 2004 09:17:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-ftp-command/m-p/3392689#M705798</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2004-10-04T09:17:52Z</dc:date>
    </item>
  </channel>
</rss>

