<?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: cronjob question? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742997#M944037</link>
    <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;Depends - which day?&lt;BR /&gt;&lt;BR /&gt;Day of the month - say the 21st&lt;BR /&gt;1 0 21 * * /path/to/command&lt;BR /&gt;&lt;BR /&gt;Day of week - say Monday&lt;BR /&gt;1 0 * * 1 /path/to/command&lt;BR /&gt;&lt;BR /&gt;A particular Monday every month - say the 3rd Monday&lt;BR /&gt;1 0 15,16,17,18,189,20,21 * 1 /path/to/command&lt;BR /&gt;&lt;BR /&gt;If you just want to run this say every 21 days the best way is to use the  at  command &amp;amp; the ending command of the at command would be to make another  at  command destined for 21 days later.&lt;BR /&gt;If it's ONLY once then definitely use that at command.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
    <pubDate>Wed, 12 Jun 2002 14:27:51 GMT</pubDate>
    <dc:creator>Jeff Schussele</dc:creator>
    <dc:date>2002-06-12T14:27:51Z</dc:date>
    <item>
      <title>cronjob question?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742993#M944033</link>
      <description>I have 2 cron jobs one is for stoping the database before the backup and the other is to start the databases.&lt;BR /&gt;&lt;BR /&gt;I just need that it does not start-up the data base on a one single particular day. &lt;BR /&gt;&lt;BR /&gt;How do I do that ?&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jun 2002 14:19:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742993#M944033</guid>
      <dc:creator>John McDen</dc:creator>
      <dc:date>2002-06-12T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: cronjob question?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742994#M944034</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;For the job that starts up the db, just exclude the day .  for example if that day was Tuesday:&lt;BR /&gt;&lt;BR /&gt;00 06 * * 0,1,3,4,5,6 /start_command&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 12 Jun 2002 14:23:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742994#M944034</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-06-12T14:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: cronjob question?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742995#M944035</link>
      <description>Crontab entry -&lt;BR /&gt;#min hour date month day   cmnd&lt;BR /&gt;  00  18    *    *   1-3,5-7 start_script&lt;BR /&gt;&lt;BR /&gt;Will run the command start_script&lt;BR /&gt;Mon-Wed and Thur-Sun.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;dl&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jun 2002 14:26:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742995#M944035</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2002-06-12T14:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: cronjob question?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742996#M944036</link>
      <description>Hi John:&lt;BR /&gt;&lt;BR /&gt;The easist way is to skip that day in your crontab.  For instance:&lt;BR /&gt;&lt;BR /&gt;00 01 * * 0,1,2,4,5,6 /home/jrf/db.sh&lt;BR /&gt;&lt;BR /&gt;...this would run at 0100 every day but day=3 (or Wednesday).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 12 Jun 2002 14:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742996#M944036</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-06-12T14:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: cronjob question?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742997#M944037</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;Depends - which day?&lt;BR /&gt;&lt;BR /&gt;Day of the month - say the 21st&lt;BR /&gt;1 0 21 * * /path/to/command&lt;BR /&gt;&lt;BR /&gt;Day of week - say Monday&lt;BR /&gt;1 0 * * 1 /path/to/command&lt;BR /&gt;&lt;BR /&gt;A particular Monday every month - say the 3rd Monday&lt;BR /&gt;1 0 15,16,17,18,189,20,21 * 1 /path/to/command&lt;BR /&gt;&lt;BR /&gt;If you just want to run this say every 21 days the best way is to use the  at  command &amp;amp; the ending command of the at command would be to make another  at  command destined for 21 days later.&lt;BR /&gt;If it's ONLY once then definitely use that at command.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 12 Jun 2002 14:27:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742997#M944037</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-06-12T14:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: cronjob question?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742998#M944038</link>
      <description>Sorry, Chris is correct on the days ... it is 0-6.&lt;BR /&gt;0= Sunday.&lt;BR /&gt;I was thinking the date command days.&lt;BR /&gt;Use Chris's or a combo.&lt;BR /&gt;&lt;BR /&gt;Embarassed.</description>
      <pubDate>Wed, 12 Jun 2002 14:29:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742998#M944038</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2002-06-12T14:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: cronjob question?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742999#M944039</link>
      <description>Hi John&lt;BR /&gt;&lt;BR /&gt;There are two ways to do it :&lt;BR /&gt;&lt;BR /&gt;0 6 * * 0 1 2 3 4 6  /&lt;COMMAND&gt;&lt;BR /&gt;&lt;BR /&gt;not to run on day 5 ie friday&lt;BR /&gt;&lt;BR /&gt;or run it for the other days individually.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;/COMMAND&gt;</description>
      <pubDate>Wed, 12 Jun 2002 14:33:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2742999#M944039</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-06-12T14:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: cronjob question?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2743000#M944040</link>
      <description>Thanks to all of you ...</description>
      <pubDate>Wed, 12 Jun 2002 14:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2743000#M944040</guid>
      <dc:creator>John McDen</dc:creator>
      <dc:date>2002-06-12T14:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: cronjob question?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2743001#M944041</link>
      <description>Whoops...misread &amp;amp; a typo...sheesh...&lt;BR /&gt;&lt;BR /&gt;Yes just exclude the day from command. Earlier responses are right on.&lt;BR /&gt;&lt;BR /&gt;But let's add the xth day of the month&lt;BR /&gt;Let's say the 21st&lt;BR /&gt;1 0 1-20,22-31 * * /path/to/start_command&lt;BR /&gt;&lt;BR /&gt;Now let's say the x day of the xth week&lt;BR /&gt;In this case the 3rd Monday&lt;BR /&gt;1 0 1-14,22-31 * 1 /path/to/start_command&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 12 Jun 2002 14:37:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob-question/m-p/2743001#M944041</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-06-12T14:37:11Z</dc:date>
    </item>
  </channel>
</rss>

