<?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: Cron execution &amp;amp; system time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483625#M362863</link>
    <description>Results of date commands  -&lt;BR /&gt;&lt;BR /&gt;date ; date -u&lt;BR /&gt;Fri Aug 21 01:33:03 CDT 2009&lt;BR /&gt;Fri Aug 21 06:33:03 UTC 2009&lt;BR /&gt;&lt;BR /&gt;Result of echoing timezone variable -&lt;BR /&gt;&lt;BR /&gt;echo $TZ&lt;BR /&gt;CST6CDT&lt;BR /&gt;&lt;BR /&gt;Finally, no to my knowledge there have been no timezone adjustments on this server</description>
    <pubDate>Fri, 21 Aug 2009 05:28:45 GMT</pubDate>
    <dc:creator>SteveR77</dc:creator>
    <dc:date>2009-08-21T05:28:45Z</dc:date>
    <item>
      <title>Cron execution &amp; system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483623#M362861</link>
      <description>I have recently run into an issue of my cron jobs exectuing an hour earlier than they are scheduled.  However, the log for the crontab posts that it ran at the time which was set in the crontab even though when a date command is executed there is a difference of an hour.&lt;BR /&gt;&lt;BR /&gt;For example the cron post 17:00 for it's execution time but the server's date will show it is only 16:00.&lt;BR /&gt;&lt;BR /&gt;I've stopped and started the cron service, triple checked all the timezone parameters which are set properly to Central time for the US.&lt;BR /&gt;&lt;BR /&gt;I've run out of options to check or try to resolve this so any insight that can be shed is most welcome.</description>
      <pubDate>Fri, 21 Aug 2009 04:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483623#M362861</guid>
      <dc:creator>SteveR77</dc:creator>
      <dc:date>2009-08-21T04:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cron execution &amp; system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483624#M362862</link>
      <description>What do these show:&lt;BR /&gt;date; date -u&lt;BR /&gt;echo $TZ&lt;BR /&gt;&lt;BR /&gt;Did you change /etc/TIMEZONE without restarting cron?</description>
      <pubDate>Fri, 21 Aug 2009 05:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483624#M362862</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-21T05:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cron execution &amp; system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483625#M362863</link>
      <description>Results of date commands  -&lt;BR /&gt;&lt;BR /&gt;date ; date -u&lt;BR /&gt;Fri Aug 21 01:33:03 CDT 2009&lt;BR /&gt;Fri Aug 21 06:33:03 UTC 2009&lt;BR /&gt;&lt;BR /&gt;Result of echoing timezone variable -&lt;BR /&gt;&lt;BR /&gt;echo $TZ&lt;BR /&gt;CST6CDT&lt;BR /&gt;&lt;BR /&gt;Finally, no to my knowledge there have been no timezone adjustments on this server</description>
      <pubDate>Fri, 21 Aug 2009 05:28:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483625#M362863</guid>
      <dc:creator>SteveR77</dc:creator>
      <dc:date>2009-08-21T05:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cron execution &amp; system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483626#M362864</link>
      <description>it remind of an ambiguous event I faced on our customer Solaris Servers. Problem was very same. Even though I rebooted server not solved issue, but 3 or 5 days later problem solved by the system itself.&lt;BR /&gt;&lt;BR /&gt;I just recommend to reboot server if you are free to do.</description>
      <pubDate>Fri, 21 Aug 2009 05:57:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483626#M362864</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-08-21T05:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cron execution &amp; system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483627#M362865</link>
      <description>Thank you, unfortunately this server reboots every night but the issue has not corrected itself even after two days.</description>
      <pubDate>Fri, 21 Aug 2009 06:36:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483627#M362865</guid>
      <dc:creator>SteveR77</dc:creator>
      <dc:date>2009-08-21T06:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cron execution &amp; system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483628#M362866</link>
      <description>&amp;gt; Results of date commands &amp;amp; Result of echoing timezone variable&lt;BR /&gt;&lt;BR /&gt;You seem to have your clock correct.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;even though when a date command is executed there is a difference of an hour.&lt;BR /&gt;&lt;BR /&gt;How do you know this?&lt;BR /&gt;Did that date include your timezone?&lt;BR /&gt;Can you start a cronjob and do the above date and echo commands?&lt;BR /&gt;&lt;BR /&gt;Note that in a cronjob, TZ isn't likely to be set correctly.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;For example the cron post 17:00 for it's execution time but the server's date will show it is only 16:00.&lt;BR /&gt;&lt;BR /&gt;This implies that cron has TZ set to EST5EDT?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Hakki: I just recommend to reboot server if you are free to do.&lt;BR /&gt;&lt;BR /&gt;It might be just easier to stop and restart cron:&lt;BR /&gt;/sbin/init.d/cron stop&lt;BR /&gt;/sbin/init.d/cron start</description>
      <pubDate>Fri, 21 Aug 2009 06:36:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483628#M362866</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-21T06:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cron execution &amp; system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483629#M362867</link>
      <description>The service was stopped and restarted using:&lt;BR /&gt;/sbin/init.d/cron stop&lt;BR /&gt;/sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;The date does show the timezone correctly as CDT.&lt;BR /&gt;&lt;BR /&gt;I can create a script to capture what cron believes the TZ and time settings are&lt;BR /&gt;&lt;BR /&gt;At this moment, I have reviewed what the environment has for the timezone and all that I could see is correct.  Also this server does not do any time synchronization so that is not a variable that could be causing this.&lt;BR /&gt;&lt;BR /&gt;Thanks once again.</description>
      <pubDate>Fri, 21 Aug 2009 06:47:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483629#M362867</guid>
      <dc:creator>SteveR77</dc:creator>
      <dc:date>2009-08-21T06:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cron execution &amp; system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483630#M362868</link>
      <description>Can you pls post your cron entry here..</description>
      <pubDate>Fri, 21 Aug 2009 11:22:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483630#M362868</guid>
      <dc:creator>Vijaykumar_1</dc:creator>
      <dc:date>2009-08-21T11:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cron execution &amp; system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483631#M362869</link>
      <description>Everyone,&lt;BR /&gt;&lt;BR /&gt;Thank you for your assistance.  The cron service was getting the default of EDT.  While the rest of the environment was CDT.&lt;BR /&gt;&lt;BR /&gt;I'm reviewing the init.d configuration but I believe I have this resolved.</description>
      <pubDate>Fri, 21 Aug 2009 12:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483631#M362869</guid>
      <dc:creator>SteveR77</dc:creator>
      <dc:date>2009-08-21T12:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cron execution &amp; system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483632#M362870</link>
      <description>&amp;gt;The cron service was getting the default of EDT.&lt;BR /&gt;&lt;BR /&gt;My crontab entries set TZ when I start my scripts:&lt;BR /&gt;* * * * * export TZ=XX; ...&lt;BR /&gt;Or put that in your scripts.</description>
      <pubDate>Fri, 21 Aug 2009 23:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-execution-amp-system-time/m-p/4483632#M362870</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-21T23:58:43Z</dc:date>
    </item>
  </channel>
</rss>

