<?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 Download files to local server using ftp script based on date. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735316#M386809</link>
    <description>Hi,&lt;BR /&gt;I have written one ftp script which will download some files from ftp server and scheduled this in cron.&lt;BR /&gt;Daily this script will run and download the files to local server.&lt;BR /&gt;It is running successfully.&lt;BR /&gt;&lt;BR /&gt;Now the problem is some times the source system is not placing the files in server due to some problem at their end.&lt;BR /&gt;&lt;BR /&gt;As we dont know this our script is downloading the previous day files.&lt;BR /&gt;&lt;BR /&gt;Please let me know how to check the modified date in ftp. So that I will check date then download the file.</description>
    <pubDate>Fri, 07 Jan 2011 10:29:57 GMT</pubDate>
    <dc:creator>Gopi Kishore m</dc:creator>
    <dc:date>2011-01-07T10:29:57Z</dc:date>
    <item>
      <title>Download files to local server using ftp script based on date.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735316#M386809</link>
      <description>Hi,&lt;BR /&gt;I have written one ftp script which will download some files from ftp server and scheduled this in cron.&lt;BR /&gt;Daily this script will run and download the files to local server.&lt;BR /&gt;It is running successfully.&lt;BR /&gt;&lt;BR /&gt;Now the problem is some times the source system is not placing the files in server due to some problem at their end.&lt;BR /&gt;&lt;BR /&gt;As we dont know this our script is downloading the previous day files.&lt;BR /&gt;&lt;BR /&gt;Please let me know how to check the modified date in ftp. So that I will check date then download the file.</description>
      <pubDate>Fri, 07 Jan 2011 10:29:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735316#M386809</guid>
      <dc:creator>Gopi Kishore m</dc:creator>
      <dc:date>2011-01-07T10:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Download files to local server using ftp script based on date.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735317#M386810</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I have written one ftp script [...]&lt;BR /&gt;&lt;BR /&gt;To run on what?&lt;BR /&gt;&lt;BR /&gt;      uname -a&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Please let me know how to check the&lt;BR /&gt;&amp;gt; modified date in ftp.  [...]&lt;BR /&gt;&lt;BR /&gt;Uh, have you considered using a "dir"&lt;BR /&gt;("LIST") command?&lt;BR /&gt;&lt;BR /&gt;You might look into wget, particularly its&lt;BR /&gt;"--timestamping" ("-N") option.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/wget/wget.html" target="_blank"&gt;http://www.gnu.org/software/wget/wget.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(This wheel has already been invented.)</description>
      <pubDate>Fri, 07 Jan 2011 12:49:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735317#M386810</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-01-07T12:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Download files to local server using ftp script based on date.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735318#M386811</link>
      <description>Hi Gopi:&lt;BR /&gt;&lt;BR /&gt;You need to look at the manpages for 'ftp(1)'.  Therein you will find two options that will assist you:&lt;BR /&gt;&lt;BR /&gt;# modtime remote-file&lt;BR /&gt;&lt;BR /&gt;...which shows the last modification time of remote-file&lt;BR /&gt;&lt;BR /&gt;# newer file-name &lt;BR /&gt;&lt;BR /&gt;...which gets the file only if the modification time of the remote file is more recent that the file on the current system&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 07 Jan 2011 12:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735318#M386811</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-01-07T12:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Download files to local server using ftp script based on date.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735319#M386812</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] two options that will assist you:&lt;BR /&gt;&lt;BR /&gt;That depends a bit on the FTP server.  One&lt;BR /&gt;possible outcome, for example:&lt;BR /&gt;&lt;BR /&gt;ftp&amp;gt; modtime robots.txt&lt;BR /&gt;502 MDTM is unimplemented.&lt;BR /&gt;&lt;BR /&gt;But you could get lucky.  With my weak&lt;BR /&gt;psychic powers, I wouldn't try to guess the&lt;BR /&gt;capabilities of "ftp server" "at their end"&lt;BR /&gt;without more (that is, some) actual&lt;BR /&gt;information.</description>
      <pubDate>Fri, 07 Jan 2011 13:45:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735319#M386812</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-01-07T13:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Download files to local server using ftp script based on date.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735320#M386813</link>
      <description>ThankQ JRF... It solved my problem.. :-)&lt;BR /&gt;&lt;BR /&gt;when I am trying to use modtime for directories, I am getting the error &lt;BR /&gt;"550 Could not get file modification time."&lt;BR /&gt;&lt;BR /&gt;Is there any way to use for folders as well??&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jan 2011 15:32:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735320#M386813</guid>
      <dc:creator>Gopi Kishore m</dc:creator>
      <dc:date>2011-01-07T15:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Download files to local server using ftp script based on date.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735321#M386814</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; when I am trying to use modtime for directories, I am getting the error "550 Could not get file modification time."  Is there any way to use for folders as well??&lt;BR /&gt;&lt;BR /&gt;I don't think so.  You could use something like 'dir' to collect a listing (with dates) of the files in a directory and then parse that list, though.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jan 2011 15:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/download-files-to-local-server-using-ftp-script-based-on-date/m-p/4735321#M386814</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-01-07T15:48:59Z</dc:date>
    </item>
  </channel>
</rss>

