<?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: DST and cron in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968017#M417154</link>
    <description>No, John, properly patched cron executes once in both of those circumstances. You also need to do a "man cron" and then read it.</description>
    <pubDate>Fri, 17 Mar 2006 11:55:00 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-03-17T11:55:00Z</dc:date>
    <item>
      <title>DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968011#M417148</link>
      <description>I'm an Indiana resident who is being forced to face what the rest of you have dealt with for decades; Daylight Saving Time.  I'll not go into the usual rant that this topic initates, but would like some information on how cron deals with the "Spring forward" and "Fall back" situations.  Any documentation and links would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Our servers are all set for the big day, but I want to make sure we know what to expect.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Stuart</description>
      <pubDate>Fri, 17 Mar 2006 11:38:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968011#M417148</guid>
      <dc:creator>Stuart Powell</dc:creator>
      <dc:date>2006-03-17T11:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968012#M417149</link>
      <description>Hi Stuart:&lt;BR /&gt;&lt;BR /&gt;The manpages for 'cron' explain how daylight saving changes (if any) are handled by 'cron' itself:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60127/cron.1M.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60127/cron.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 17 Mar 2006 11:44:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968012#M417149</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-17T11:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968013#M417150</link>
      <description>Stuart,&lt;BR /&gt;&lt;BR /&gt;As usual, the man page is your friend.  Check the man page for cron, under the "Spring and Autumn Time Transitions" section.  It goes into a detailed explanation that should satisfy your curiosity.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 17 Mar 2006 11:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968013#M417150</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-03-17T11:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968014#M417151</link>
      <description>Assuming that you are up to date on cron patches -- and there have been some cron patches that deal specifically with DST and assuming that you have stopped and restarted the cron daemon since making any tztab changes (or changing /etc/TIMEZONE)  then it should be a complete non-event. Do a man cron and look for the "Spring and Autumn Time Transitions" section. It explains this fully.&lt;BR /&gt;&lt;BR /&gt;To test whether or not, you have setup tztab correctly, run the attached Perl script, dst.pl. It will display the exact second before and after the time changes and because it uses the standard libc routines, if this works then all the commands like date will work and all of your application code that uses the standard routines works as well.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Mar 2006 11:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968014#M417151</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-17T11:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968015#M417152</link>
      <description>I should add, invoke the Perl script as dst.pl -u for full usage but basically if invoked as "dst.pl", it will display the time transitions for the current year and if invoked as "dst.pl -y 2007" it will do the same for the specified year. It can also display the time remaining until the next transition.</description>
      <pubDate>Fri, 17 Mar 2006 11:50:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968015#M417152</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-17T11:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968016#M417153</link>
      <description>One thing to look for is that there will be no 0200 hour that day. Any cron jobs that are expected to run between 0200 and 0300 won't run that one time. One more thing to consider in the fall where the jobs set at 0100 hour will run twice. I think I am correct in this, but it bears looking at.</description>
      <pubDate>Fri, 17 Mar 2006 11:50:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968016#M417153</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2006-03-17T11:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968017#M417154</link>
      <description>No, John, properly patched cron executes once in both of those circumstances. You also need to do a "man cron" and then read it.</description>
      <pubDate>Fri, 17 Mar 2006 11:55:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968017#M417154</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-17T11:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968018#M417155</link>
      <description>John's thoughts are in line with my understanding of the situation.  However, I will review the man pages.</description>
      <pubDate>Fri, 17 Mar 2006 11:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968018#M417155</guid>
      <dc:creator>Stuart Powell</dc:creator>
      <dc:date>2006-03-17T11:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968019#M417156</link>
      <description>I got this from the man page. Am I reading this wrong or a job scheduled to run at 2:30 will NOT run:&lt;BR /&gt;&lt;BR /&gt; WARNINGS&lt;BR /&gt;      In the Spring, when there is a nonexistent hour because of daylight&lt;BR /&gt;      savings time, a command that is scheduled to run multiple times during&lt;BR /&gt;      the nonexistent hour will only be run once.  For example, a command&lt;BR /&gt;      scheduled to run at 2:00 and 2:30 a.m. in the MST7MDT time zone will&lt;BR /&gt;      only run at 3:00 a.m.  The command that was scheduled at 2:30 a.m.&lt;BR /&gt;      will not be run at all, instead of running at 3:30 a.m.&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Mar 2006 12:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968019#M417156</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2006-03-17T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968020#M417157</link>
      <description>OK, I reviewed the man page.  If I understand it correctly then there will be no issues in the fall when we fall back.  An entry scheduled to run at 1:30 AM will execute only the first time.  Also I believe that means this Spring my job that is scheduled to run at 2:30 AM will actually run at 3:30 AM.  Does that assume that the kernel parameter "timezone" has a value of the offset that will happen during the DST portion of the year, which for this part of Indiana that is observering EDT will be 240 minutes?  The "timezone" kernel paramater is set to 420 which, to me, would be associated with MDT.  Am I missing something here.  Before my last reboot I ran â  /sbin/set_parms timezoneâ   to change TZ to EST5EDT, and that is reflected in the current system setting.  &lt;BR /&gt;Thoughts?</description>
      <pubDate>Fri, 17 Mar 2006 12:09:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968020#M417157</guid>
      <dc:creator>Stuart Powell</dc:creator>
      <dc:date>2006-03-17T12:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968021#M417158</link>
      <description>Hi (again) Stuart:&lt;BR /&gt;&lt;BR /&gt;You would only need to set the kernel 'timezone' and 'dst' parameters if you did not configure a 'TZ' value.&lt;BR /&gt;&lt;BR /&gt;The 'TZ' environmenal variable is defined in '/etc/TIMEZONE'by manually editting the file or running '/sbin/set_parms' with an argument of 'timezone'.&lt;BR /&gt;&lt;BR /&gt;The '/etc/TIMEZONE' file is sourced (read) by 'etc/profile' which is how your login sessions derive the system-wide TZ value.&lt;BR /&gt;&lt;BR /&gt;Other programs (Perl, C, etc.) use the 'ctime()' library calls to ascertain this TZ setting too.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 17 Mar 2006 13:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968021#M417158</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-17T13:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968022#M417159</link>
      <description>The only gotcha's are that jobs that are scheduled to run multiple times during a non-existant hour will execute but once -- again, if you have applied the cron patches. The kernel paramter timezone only comes into play when there is no TZ setting. When cron is started under /sbin/rcX.d/ the /etc/TIMEZONE value is automatically sourced so that that becomes the TZ value. If you stop cron by executing /sbin/init.d/cron stop and then restart it manually via /sbin/init.d/cron start then TZ takes on the value that was in the environment at that time.</description>
      <pubDate>Fri, 17 Mar 2006 13:02:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968022#M417159</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-17T13:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: DST and cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968023#M417160</link>
      <description>Thanks to all for your input.  I believe that I've got a much better handle on the situation.</description>
      <pubDate>Fri, 17 Mar 2006 13:29:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dst-and-cron/m-p/4968023#M417160</guid>
      <dc:creator>Stuart Powell</dc:creator>
      <dc:date>2006-03-17T13:29:07Z</dc:date>
    </item>
  </channel>
</rss>

