<?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 cron foo in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255238#M332129</link>
    <description>I must not be awake yet. I had a cron set&lt;BR /&gt;to run on Aug. 26 at 8:00am on the 2nd day&lt;BR /&gt;of the week, only. But it ran on Aug. 19 at&lt;BR /&gt;8:00am on the second day of the week. Does &lt;BR /&gt;anyone see what is wrong with this cron&lt;BR /&gt;entry or know of such a thing happening??&lt;BR /&gt;&lt;BR /&gt;0 8 26 8 2  &lt;COMMAND&gt;&lt;BR /&gt;&lt;BR /&gt;cron log entry on the run:&lt;BR /&gt;&amp;gt;  root 25836 c Tue Aug 19 08:00:00 CDT 2008&lt;/COMMAND&gt;</description>
    <pubDate>Wed, 20 Aug 2008 15:01:24 GMT</pubDate>
    <dc:creator>jerry1</dc:creator>
    <dc:date>2008-08-20T15:01:24Z</dc:date>
    <item>
      <title>cron foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255238#M332129</link>
      <description>I must not be awake yet. I had a cron set&lt;BR /&gt;to run on Aug. 26 at 8:00am on the 2nd day&lt;BR /&gt;of the week, only. But it ran on Aug. 19 at&lt;BR /&gt;8:00am on the second day of the week. Does &lt;BR /&gt;anyone see what is wrong with this cron&lt;BR /&gt;entry or know of such a thing happening??&lt;BR /&gt;&lt;BR /&gt;0 8 26 8 2  &lt;COMMAND&gt;&lt;BR /&gt;&lt;BR /&gt;cron log entry on the run:&lt;BR /&gt;&amp;gt;  root 25836 c Tue Aug 19 08:00:00 CDT 2008&lt;/COMMAND&gt;</description>
      <pubDate>Wed, 20 Aug 2008 15:01:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255238#M332129</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-08-20T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: cron foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255239#M332130</link>
      <description>&lt;!--!*#--&gt;From the man page:&lt;BR /&gt;&lt;BR /&gt;"Note that the specification of days can be made in two fields: monthday and weekday. If both are specified in an entry, they are cumulative.  For example,&lt;BR /&gt;&lt;BR /&gt;           0   0   1,15   *   1   command&lt;BR /&gt;&lt;BR /&gt;runs command at midnight on the first and fifteenth of each month, as well as every Monday."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 20 Aug 2008 15:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255239#M332130</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-08-20T15:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: cron foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255240#M332131</link>
      <description>0 8 26 * * &amp;lt; command &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Wed, 20 Aug 2008 15:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255240#M332131</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-08-20T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: cron foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255241#M332132</link>
      <description>All fine. But it does not explain why&lt;BR /&gt;this ran on Aug 19 at 8am on the 2nd day&lt;BR /&gt;of the week when it was setup to run&lt;BR /&gt;Aug 26 at 8am on the 2nd day of the week:&lt;BR /&gt;&lt;BR /&gt;Minute Hour Dayofmonth Monthofyear Dayofweek&lt;BR /&gt;0       8      26          8          2</description>
      <pubDate>Wed, 20 Aug 2008 15:32:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255241#M332132</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-08-20T15:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: cron foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255242#M332133</link>
      <description>It was tuesday on 19 and you had specified 2 in crontab entry, that's why it ran on 19.&lt;BR /&gt;It will also run on 26 and on every second day of the week.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Wed, 20 Aug 2008 15:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255242#M332133</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-08-20T15:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: cron foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255243#M332134</link>
      <description>&lt;!--!*#--&gt;OK, I'll translate for you:&lt;BR /&gt;&lt;BR /&gt;"Note that the specification of days can be made in two fields: monthday and weekday. If both are specified in an entry, they are CUMULATIVE.  For example,&lt;BR /&gt;&lt;BR /&gt;           0   8   26   8   2   &lt;COMMAND&gt;&lt;BR /&gt;&lt;BR /&gt;runs command at 8:00AM on the twentysixth of each month, as well as EVERY Tuesday."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;/COMMAND&gt;</description>
      <pubDate>Wed, 20 Aug 2008 15:43:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255243#M332134</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-08-20T15:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: cron foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255244#M332135</link>
      <description>Hi Jerry:&lt;BR /&gt;&lt;BR /&gt;The Forum is a funny place.  Similar questions are asked within days of one another.&lt;BR /&gt;&lt;BR /&gt;Examine this post's crontab command and my comment of how it is interpreted:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1260835" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1260835&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Pete has pointed you to the manpages.  They don't lie [at least in this case] :-}&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 20 Aug 2008 15:51:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255244#M332135</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-20T15:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: cron foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255245#M332136</link>
      <description>To put it a different way:&lt;BR /&gt;&lt;BR /&gt;You are trying to be redundant, by telling cron to run the job on Tuesday Aug. 26.  In this case it backfired on you though because cron does NOT do an 'AND' with the day and date fields.  You expected it do something like, IF time = 8:00 AM AND today is TUESDAY AND the date is Aug. 26 THEN run your command.&lt;BR /&gt;&lt;BR /&gt;However what cron does:&lt;BR /&gt;&lt;BR /&gt;If time = 8:00 AM AND (today is TUESDAY ***OR*** the date is Aug. 26) THEN run your command.&lt;BR /&gt;&lt;BR /&gt;Hopefully it is clear now?</description>
      <pubDate>Wed, 20 Aug 2008 15:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255245#M332136</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-08-20T15:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: cron foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255246#M332137</link>
      <description>Okay, I'm awake now.&lt;BR /&gt;&lt;BR /&gt;Better.&lt;BR /&gt;&lt;BR /&gt;0 8 26 8 *</description>
      <pubDate>Wed, 20 Aug 2008 16:49:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255246#M332137</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-08-20T16:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: cron foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255247#M332138</link>
      <description>It is tztab(4) that uses AND of the day of week and the day of month.</description>
      <pubDate>Thu, 21 Aug 2008 03:13:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-foo/m-p/4255247#M332138</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-21T03:13:26Z</dc:date>
    </item>
  </channel>
</rss>

