<?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: FTP question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510723#M218213</link>
    <description>A get alone will just grab the first file it finds I believe.  Try changing that to an mget (multiple get) and it should work fine.  I just tried it out successfully.&lt;BR /&gt;&lt;BR /&gt;Jim</description>
    <pubDate>Wed, 23 Mar 2005 14:57:15 GMT</pubDate>
    <dc:creator>Jim Mallett</dc:creator>
    <dc:date>2005-03-23T14:57:15Z</dc:date>
    <item>
      <title>FTP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510722#M218212</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;is it possible to get a specific range of files through FTP from a HP-UX script?&lt;BR /&gt;&lt;BR /&gt;Ex:&lt;BR /&gt;&lt;BR /&gt;CURDATE=`date '%m%d%y'`&lt;BR /&gt;ftp -i -n IP_ADDRESS &amp;gt; /baan4/plc_data/data/ftp.log &amp;lt;&amp;lt; EOF&lt;BR /&gt;        user login password&lt;BR /&gt;        ascii&lt;BR /&gt;        get *$CURDATE.csv&lt;BR /&gt;        bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;All i want to do is fetch the files that got the current date in the name. (file_23032005.csv)&lt;BR /&gt;&lt;BR /&gt;i have a scipt that is working but it's always getting the same file (*.csv). I want to be able to pass the file name as a parameter to it.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;PB</description>
      <pubDate>Wed, 23 Mar 2005 14:51:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510722#M218212</guid>
      <dc:creator>Patrice Blanchard_2</dc:creator>
      <dc:date>2005-03-23T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: FTP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510723#M218213</link>
      <description>A get alone will just grab the first file it finds I believe.  Try changing that to an mget (multiple get) and it should work fine.  I just tried it out successfully.&lt;BR /&gt;&lt;BR /&gt;Jim</description>
      <pubDate>Wed, 23 Mar 2005 14:57:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510723#M218213</guid>
      <dc:creator>Jim Mallett</dc:creator>
      <dc:date>2005-03-23T14:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: FTP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510724#M218214</link>
      <description>add prompt after ascii&lt;BR /&gt;and replace get with mget "$CURDATE.csv"&lt;BR /&gt;&lt;BR /&gt;then, try again.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Mar 2005 15:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510724#M218214</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2005-03-23T15:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: FTP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510725#M218215</link>
      <description>you need to do a mget inorder to download multiple files. Replace your get statement with mget *$CURDATE.csv, Also do a prom before or after ascii...&lt;BR /&gt;&lt;BR /&gt;user login password&lt;BR /&gt;prom&lt;BR /&gt;ascii&lt;BR /&gt;mget *$CURDATE.csv&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Mar 2005 15:08:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510725#M218215</guid>
      <dc:creator>Madhukar Adi</dc:creator>
      <dc:date>2005-03-23T15:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: FTP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510726#M218216</link>
      <description>I'm not sure if the above was an example or the actual script and filenames, if so there are a couple of minor changes.&lt;BR /&gt;&lt;BR /&gt;Your file example is file_23032005.csv (mmddyyyy) so:&lt;BR /&gt;CURDATE=`date +%d%m%Y`&lt;BR /&gt;&lt;BR /&gt;And as mentioned above, get becomes mget:&lt;BR /&gt;mget *$CURDATE.csv&lt;BR /&gt;&lt;BR /&gt;On SYS2 I created afile_23032005.csv, bfile_23032005.csv, and cfile_23032004.csv (notice the year on the last one).&lt;BR /&gt;&lt;BR /&gt;The following grabbed the first two:&lt;BR /&gt;CURDATE=`date +%d%m%Y`&lt;BR /&gt;ftp -i -n 10.10.2.110 &amp;gt; /tmp/ftp.log &amp;lt;&amp;lt; EOF&lt;BR /&gt;user user pass&lt;BR /&gt;ascii&lt;BR /&gt;mget /tmp/*$CURDATE.csv&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Mar 2005 15:11:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510726#M218216</guid>
      <dc:creator>Jim Mallett</dc:creator>
      <dc:date>2005-03-23T15:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: FTP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510727#M218217</link>
      <description>Thanks, it's working.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;PB&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Mar 2005 15:27:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3510727#M218217</guid>
      <dc:creator>Patrice Blanchard_2</dc:creator>
      <dc:date>2005-03-23T15:27:52Z</dc:date>
    </item>
  </channel>
</rss>

