<?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: RCP behaviour when time misalignment between source and destination in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617583#M885329</link>
    <description>Try this simple perl script.  It takes a directory name as the argument and prints out a list of files in that directory with their corresponding mod time's.&lt;BR /&gt;&lt;BR /&gt;#!/opt/perl5/bin/perl&lt;BR /&gt;&lt;BR /&gt;opendir(DIR, $ARGV[0])&lt;BR /&gt;  or die "could not open directory $ARGV[0]: $!";&lt;BR /&gt;&lt;BR /&gt;while (defined($filename = readdir(DIR))) {&lt;BR /&gt;  ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,&lt;BR /&gt;   $atime,$mtime,$ctime,$blksize,$blocks) = stat($filename);&lt;BR /&gt;&lt;BR /&gt;  ($sec,$min,$hour,$mday,$mon,$year,@rest) = localtime($mtime);&lt;BR /&gt;&lt;BR /&gt;  printf("%02d:%02d:%02d %02d/%02d/%04d %s\n",&lt;BR /&gt;         $hour, $min, $sec, $mday, $mon+1, $year+1900, $filename);&lt;BR /&gt;}&lt;BR /&gt;closedir(DIR);&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Steve</description>
    <pubDate>Tue, 20 Nov 2001 15:12:08 GMT</pubDate>
    <dc:creator>Steven Gillard_2</dc:creator>
    <dc:date>2001-11-20T15:12:08Z</dc:date>
    <item>
      <title>RCP behaviour when time misalignment between source and destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617579#M885325</link>
      <description>Hi all,&lt;BR /&gt;we use rcp with "-p" option, which should keep the proper file owner/groups and data.&lt;BR /&gt;The source machine date is 2 hours after the destination one.&lt;BR /&gt;We remote copy a file which date is 12.00.&lt;BR /&gt;The destination time is 10.00 ... after the copy on the destination the file date is "2001", i.e. no date has been assigned, because the HP UX isn't able to manage a date "after" the current one.&lt;BR /&gt;If the source date is only few minutes after the destination one, then the destination machine can manage the time (i.e. 10:15 when the date is 10:00).&lt;BR /&gt;What is the maximum time misalignment supported (managed) by the HP UX in the context of a file remote copy?&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Nov 2001 14:32:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617579#M885325</guid>
      <dc:creator>Enrico Venturi</dc:creator>
      <dc:date>2001-11-20T14:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: RCP behaviour when time misalignment between source and destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617580#M885326</link>
      <description>I think you'll find the time is indeed being set correctly.  I assume you're using ls -l (or ll) to view the date?  The ls -l command has some logic which decides whether the modification time of the file is in the current 24 hour period or not, and obviously when the mod time is greater than the system time this logic is confused.  Hence ls -l displays the mod time in date-only format without the time.  &lt;BR /&gt;&lt;BR /&gt;I'll bet that when the time on the destination system catches up to the mod time of the file, ls -l will display the time as you expect.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Steve&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Nov 2001 14:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617580#M885326</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2001-11-20T14:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: RCP behaviour when time misalignment between source and destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617581#M885327</link>
      <description>Steve, you're rigth: I use ll.&lt;BR /&gt;Which command can be used to check if the date is set/kept correctly?</description>
      <pubDate>Tue, 20 Nov 2001 15:01:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617581#M885327</guid>
      <dc:creator>Enrico Venturi</dc:creator>
      <dc:date>2001-11-20T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: RCP behaviour when time misalignment between source and destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617582#M885328</link>
      <description>It should be able to handle date/time into the future until the 32bit limit is reached (Tue Jan 19 03:14:07 2038 - where one second past it is Fri Dec 13 20:45:52 1901). BTW I hope everyone is planning on getting their systems up to date by then :-))))&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 20 Nov 2001 15:08:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617582#M885328</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-20T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: RCP behaviour when time misalignment between source and destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617583#M885329</link>
      <description>Try this simple perl script.  It takes a directory name as the argument and prints out a list of files in that directory with their corresponding mod time's.&lt;BR /&gt;&lt;BR /&gt;#!/opt/perl5/bin/perl&lt;BR /&gt;&lt;BR /&gt;opendir(DIR, $ARGV[0])&lt;BR /&gt;  or die "could not open directory $ARGV[0]: $!";&lt;BR /&gt;&lt;BR /&gt;while (defined($filename = readdir(DIR))) {&lt;BR /&gt;  ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,&lt;BR /&gt;   $atime,$mtime,$ctime,$blksize,$blocks) = stat($filename);&lt;BR /&gt;&lt;BR /&gt;  ($sec,$min,$hour,$mday,$mon,$year,@rest) = localtime($mtime);&lt;BR /&gt;&lt;BR /&gt;  printf("%02d:%02d:%02d %02d/%02d/%04d %s\n",&lt;BR /&gt;         $hour, $min, $sec, $mday, $mon+1, $year+1900, $filename);&lt;BR /&gt;}&lt;BR /&gt;closedir(DIR);&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 20 Nov 2001 15:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617583#M885329</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2001-11-20T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: RCP behaviour when time misalignment between source and destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617584#M885330</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've been bitten by the same thing several times.  If the source system's clock is ahead of the destination's, the timestamp on the file will show the year until the destination system's clock catches up.&lt;BR /&gt;&lt;BR /&gt;NTP is nice for keeping the system clock syncronized to a time server.  There are several public time servers available but if your company has a firewall (they should) you may not be able to get to the public servers without having a port opened.  Of course, you're company may have an NTP time source.&lt;BR /&gt;&lt;BR /&gt;Harry, I'm glad I'll be retired by 2038!&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 20 Nov 2001 15:13:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-behaviour-when-time-misalignment-between-source-and/m-p/2617584#M885330</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-11-20T15:13:42Z</dc:date>
    </item>
  </channel>
</rss>

