<?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: scripting question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158139#M901829</link>
    <description>There is two tests in ksh&lt;BR /&gt;&lt;BR /&gt;file1 -nt file2&lt;BR /&gt; True, if file1 exists and is newer than file2.&lt;BR /&gt;&lt;BR /&gt;file1 -ot file2&lt;BR /&gt;True, if file1 exists and is older than file2.&lt;BR /&gt;&lt;BR /&gt;What happens if the two files is created at exact the same time ? I don't know but try with both tests on the same files. If both tests returns false the files is created at the same time.&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Jan 2004 08:41:50 GMT</pubDate>
    <dc:creator>Leif Halvarsson_2</dc:creator>
    <dc:date>2004-01-07T08:41:50Z</dc:date>
    <item>
      <title>scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158137#M901827</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to determine if file a has create on the same time as file b. Is there a easy way to do this in th korn shell?</description>
      <pubDate>Wed, 07 Jan 2004 08:32:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158137#M901827</guid>
      <dc:creator>Pieter_5</dc:creator>
      <dc:date>2004-01-07T08:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158138#M901828</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use ls -clt.&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Wed, 07 Jan 2004 08:38:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158138#M901828</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-01-07T08:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158139#M901829</link>
      <description>There is two tests in ksh&lt;BR /&gt;&lt;BR /&gt;file1 -nt file2&lt;BR /&gt; True, if file1 exists and is newer than file2.&lt;BR /&gt;&lt;BR /&gt;file1 -ot file2&lt;BR /&gt;True, if file1 exists and is older than file2.&lt;BR /&gt;&lt;BR /&gt;What happens if the two files is created at exact the same time ? I don't know but try with both tests on the same files. If both tests returns false the files is created at the same time.&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jan 2004 08:41:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158139#M901829</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2004-01-07T08:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158140#M901830</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;there is no foolproof way to check the creation date of a file.&lt;BR /&gt;ls -lc works as long as you don't change the inode with chmod or so.&lt;BR /&gt;Otherwise you have only the last modification date.&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jan 2004 08:58:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158140#M901830</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-01-07T08:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158141#M901831</link>
      <description>Actually this is impossible because UNIX has no notion of when a file was created; that datum is not carried in the inode. If you know a file's creation time it is purely by accident. The 'ctime' of a file refers not to creation time but rather 'change' time --- which is not the same as 'mtime' (modification) time. 'Ctime' refers to the last mode change.&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jan 2004 09:32:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3158141#M901831</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-01-07T09:32:32Z</dc:date>
    </item>
  </channel>
</rss>

