<?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: COPY/FTP Command and Date/Time Stamp in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376762#M41852</link>
    <description>We are copying source, obj and exe from development to production servers.  Would like to keep file date/time in sync for easier visual verification when troubleshooting, verifying copy results, etc.&lt;BR /&gt;&lt;BR /&gt;John</description>
    <pubDate>Wed, 11 Mar 2009 13:03:11 GMT</pubDate>
    <dc:creator>John T. Farmer</dc:creator>
    <dc:date>2009-03-11T13:03:11Z</dc:date>
    <item>
      <title>COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376759#M41849</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;On OpenVMS 8.3, two Alpha servers on IP network (no DECNet), I have implemented the COPY/FTP command in several DCL procedures to move files between developement and production servers.  One thing I noticed was the file date/time stamp of the file takes the current date/time on the destination system.  Is there anyway to retain the original file attributes using FTP?  DECNet is not allowed in our corporate network (IP only).  &lt;BR /&gt;&lt;BR /&gt;Also, just reading about COPY/RCP, but have odd results using that form.  Odd results meaning the destination file takes on a date/time other than the original file date or the destination system date.  Hmmmmm...&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;John &lt;BR /&gt;&lt;BR /&gt;John dot Farmer at Genworth dot com</description>
      <pubDate>Wed, 11 Mar 2009 12:47:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376759#M41849</guid>
      <dc:creator>John T. Farmer</dc:creator>
      <dc:date>2009-03-11T12:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376760#M41850</link>
      <description>John&lt;BR /&gt;&lt;BR /&gt;I think that is expected behaviour.&lt;BR /&gt;&lt;BR /&gt;Why is it a problem for you? Are you trying to synchronise procedures across nodes?&lt;BR /&gt;&lt;BR /&gt;If so, the CHECKSUM command might be useful.&lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Wed, 11 Mar 2009 12:58:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376760#M41850</guid>
      <dc:creator>Craig A</dc:creator>
      <dc:date>2009-03-11T12:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376761#M41851</link>
      <description>I've found that looking at the dates on containers is surprisingly fragile and often problematic.  There are cases within DECnet were the low bits of the timestamp are lost, for instance.  &lt;BR /&gt;&lt;BR /&gt;Common alternative choices here are MD5/SHA1 and verification of the file against a known checksum, or the use of git or SVN or Hg or such (and a known-good repository), or to zip the bits and protect the date that way.&lt;BR /&gt;&lt;BR /&gt;BTW: DECnet runs just fine over IP, if you want to use that.&lt;BR /&gt;&lt;BR /&gt;ftp is a massive security hole and a security hole that's also basically incompatible with firewalls, too.  FWIW.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2009 13:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376761#M41851</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-03-11T13:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376762#M41852</link>
      <description>We are copying source, obj and exe from development to production servers.  Would like to keep file date/time in sync for easier visual verification when troubleshooting, verifying copy results, etc.&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Wed, 11 Mar 2009 13:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376762#M41852</guid>
      <dc:creator>John T. Farmer</dc:creator>
      <dc:date>2009-03-11T13:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376763#M41853</link>
      <description>&lt;!--!*#--&gt;FTP is an old protocol, and unless things&lt;BR /&gt;have changed in the last decade, it doesn't&lt;BR /&gt;know or care about file date-time info.&lt;BR /&gt;&lt;BR /&gt;If you're _fetching_ files, you might try&lt;BR /&gt;using wget to do it.  Wget tries to parse an&lt;BR /&gt;FTP server's LIST output to determine a&lt;BR /&gt;file's original date-time, and then set the&lt;BR /&gt;attributes of the fetched file accordingly.&lt;BR /&gt;(Different time zones may still cause some&lt;BR /&gt;trouble, however, and "ls -l"-format listings&lt;BR /&gt;from UNIX servers can be imprecise.)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://antinode.info/dec/sw/wget.html" target="_blank"&gt;http://antinode.info/dec/sw/wget.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(Pushing a file is more demanding, as you'd&lt;BR /&gt;need to add capability to the FTP server,&lt;BR /&gt;which seems unlikely to happen.)&lt;BR /&gt;&lt;BR /&gt;Or, use BACKUP or Zip (or even "tar") to&lt;BR /&gt;preserve those attributes before&lt;BR /&gt;transmission.  Many things are possible.&lt;BR /&gt;(Even if most of them are sub-convenient.)</description>
      <pubDate>Wed, 11 Mar 2009 13:20:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376763#M41853</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-11T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376764#M41854</link>
      <description>Zip'm up before sending, unzip at destination. Stick'm in a backup file first if you have any problems.&lt;BR /&gt;It is an extra step (or two) but it may well be faster in the end.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2009 13:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376764#M41854</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-03-11T13:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376765#M41855</link>
      <description>Use NFS and a copy from the NFS disk to the destination directory (so a remote command on the destination node).&lt;BR /&gt;This preserves the mod dates (we sync files using this mechanism).&lt;BR /&gt;&lt;BR /&gt;Or write some DCL and use touch (freeware) to set the date correctly.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 11 Mar 2009 13:26:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376765#M41855</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-03-11T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376766#M41856</link>
      <description>Ok, sounds like the general consensus is to package the files (backup, zip, etc), transmit and then package on the destination.  Given that approach, I'd need something on the receiving end to automatically process the file (backup, unzip, etc).  I've looked at JOB_DAEMON from the Process Software FILESERV site, as a way to monitor and act on a file.  My thoughts there would be to package up one or more files, along with a DCL script to process the files once unpackaged... Any thoughts there, before we close out?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Wed, 11 Mar 2009 13:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376766#M41856</guid>
      <dc:creator>John T. Farmer</dc:creator>
      <dc:date>2009-03-11T13:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376767#M41857</link>
      <description>I'd look to content management.  This is often git or svn or Hg or such.  If this were Unix, I'd suggest rsync.  Treat your software releases and your files as products.&lt;BR /&gt;&lt;BR /&gt;Or you need a PCSI or other installation kit, and productize your files.  It's entirely feasible to build these kits entirely from DCL, so you package and install your bits.  For one or two servers, this might be overkill.    But for larger pools of servers, this can be invaluable.  This approach is highly reproducible.&lt;BR /&gt;&lt;BR /&gt;Or you use a pool of files and save off the MD5 or SHA1 checksums, and a tool that verifies the filename against the checksum.&lt;BR /&gt;&lt;BR /&gt;Worst case, you need some local and enhanced variation of the directory DIFF tool I posted on the Freeware a while back.   That tool looked for file content skews between the contents of two directories.  (Search HOFFMAN_EXAMPLES on Freeware V8 for *DIFF*, IIRC.  I don't have a FW8 distro handy to check ATM, and don't remember the exact name of the file.  And MVB's archives at SAIC are gone.)&lt;BR /&gt;&lt;BR /&gt;File dates, BTW, can be forged with a SET FILE command.  Which has two implications.  One is a lack of trust or a lack of reliability.  The other of which is to simply set the low bits of the file date - or the whole file date - to an encoded form of the release version.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2009 13:33:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376767#M41857</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-03-11T13:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376768#M41858</link>
      <description>John&lt;BR /&gt;&lt;BR /&gt;Personally, I would use BACKUP (if only 'cos I am a VMS bigot through and through)&lt;BR /&gt;&lt;BR /&gt;You will need to investigate whether it is appropriate to compile and link on your DEV box, just moving the .EXE's to your PRD box.&lt;BR /&gt;&lt;BR /&gt;I'd rather compile/link on your PRD box but accept that might not always be possible. &lt;BR /&gt;&lt;BR /&gt;Also bear in mind that it would be helpful if your "deployment" DCL was robust enough to be able to support a back-out where necessary.&lt;BR /&gt;&lt;BR /&gt;Finally, bear in mind that you might have to wait for a window to apply such changes on PRD. So use of some sort of logical name or flag file might be useful (especially if you have lots of PRD servers, possibly spanning timezones, etc..)&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Wed, 11 Mar 2009 13:39:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376768#M41858</guid>
      <dc:creator>Craig A</dc:creator>
      <dc:date>2009-03-11T13:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376769#M41859</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I will concur with the others. The FTP protocol has no provision for preserving time stamps (a platform independent feature).&lt;BR /&gt;&lt;BR /&gt;Personally, if I want to ensure that meta data is not damaged, I use BACKUP to build a saveset, then the OpenVMS ZIP with the "-V" switch to preserve attributes. I then ftp the ZIP archive.&lt;BR /&gt;&lt;BR /&gt;It is slightly cumbersome, but it avoids the accident of dealing with an accidental corruption in transit (e.g., someone forgetting to issue the BIN command within FTP).&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Wed, 11 Mar 2009 13:49:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376769#M41859</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2009-03-11T13:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376770#M41860</link>
      <description>There are FTP extensions aimed at preserving time stamps, but I don't think that you'll find them widely implemented.&lt;BR /&gt;&lt;BR /&gt;MDTM reports the modification time of a file&lt;BR /&gt;MFMT sets the modification time of a file&lt;BR /&gt;MFCT sets the creation time of a file.&lt;BR /&gt;&lt;BR /&gt; &lt;A href="http://tools.ietf.org/html/draft-somers-ftp-mfxx-04" target="_blank"&gt;http://tools.ietf.org/html/draft-somers-ftp-mfxx-04&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.ietf.org/rfc/rfc3659.txt?number=3659" target="_blank"&gt;http://www.ietf.org/rfc/rfc3659.txt?number=3659&lt;/A&gt;</description>
      <pubDate>Wed, 11 Mar 2009 14:05:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376770#M41860</guid>
      <dc:creator>Richard Whalen</dc:creator>
      <dc:date>2009-03-11T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376771#M41861</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] I use BACKUP to build a saveset, then&lt;BR /&gt;&amp;gt; the OpenVMS ZIP with the "-V" switch to&lt;BR /&gt;&amp;gt; attributes.  [...]&lt;BR /&gt;&lt;BR /&gt;As I try always to say, if anyone finds a&lt;BR /&gt;case where Zip (-V) alone fails to save any&lt;BR /&gt;useful file attributes, be sure to file a&lt;BR /&gt;complaint.</description>
      <pubDate>Wed, 11 Mar 2009 14:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376771#M41861</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-11T14:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: COPY/FTP Command and Date/Time Stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376772#M41862</link>
      <description>While zip "-V" and BACKUP do work just fine together and the former does successfully protect the latter against transfer errors, I've found use of zip "-V" (alone) preferable for various reasons.&lt;BR /&gt;&lt;BR /&gt;Run some local tests of these two and see what you get for results.   &lt;BR /&gt;&lt;BR /&gt;And consider the complexity of zipping a saveset.&lt;BR /&gt;&lt;BR /&gt;(This outside the discussion of portability.  While there are tools to get access into BACKUP savesets on other platforms, zip and unzip are nearly ubiquitous.   I have updated the classic vmsbackup tool for ODS-5 and some other relatively recent changes; that source pool available for download for folks that need access to savesets on other platforms.)&lt;BR /&gt;&lt;BR /&gt;But here?  This looks to be source code control.  Mercurial.  Subversion.  Git.  rsync.   Whatever.  It's quite unfortunate that there is no remote CMS client for use on OpenVMS  available here, though you have to roll your own.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2009 14:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-ftp-command-and-date-time-stamp/m-p/4376772#M41862</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-03-11T14:15:48Z</dc:date>
    </item>
  </channel>
</rss>

