<?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: about the crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616376#M235136</link>
    <description>If I want to run from monday to friday but except  1-9th , can suggest how to set ? thx</description>
    <pubDate>Wed, 31 Aug 2005 21:52:37 GMT</pubDate>
    <dc:creator>hangyu</dc:creator>
    <dc:date>2005-08-31T21:52:37Z</dc:date>
    <item>
      <title>about the crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616373#M235133</link>
      <description>I want to disable the crontab job run at 1-9th , if I set as below , is it mean the batch will run at every monday to friday EXCEPT 1-9th ? thx &lt;BR /&gt;&lt;BR /&gt;0 9 10-31 * 1-5</description>
      <pubDate>Wed, 31 Aug 2005 20:55:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616373#M235133</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-08-31T20:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: about the crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616374#M235134</link>
      <description>0 9 10-31 * 1-5 command or script&lt;BR /&gt;IT means your command will run at 9:00 from 10th to 32st each month and from monday to friday. If 1st -&amp;gt;9th falls to monday and friday you sript still execute.. -&amp;gt; BECAREFUL.I HAVE ONCE CASE LIKE THIS.&lt;BR /&gt;HTH</description>
      <pubDate>Wed, 31 Aug 2005 21:21:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616374#M235134</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2005-08-31T21:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: about the crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616375#M235135</link>
      <description>The effects of month day and weekday are cumulative.  So the job will run every monday to friday as well as every day from the 10th of the month to the 31st, at 9am.&lt;BR /&gt;&lt;BR /&gt;As far as I know with cron there is nothing to specify what you are after, which is every monday to friday.  I would set it up like &lt;BR /&gt;0 9 10-31 * * &amp;lt;script_name&amp;gt;&lt;BR /&gt;&lt;BR /&gt;and then put a quick day of the week check in the beginning of the script to exit out if its not a weekday.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Steph&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Aug 2005 21:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616375#M235135</guid>
      <dc:creator>Stephanie Nicholls</dc:creator>
      <dc:date>2005-08-31T21:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: about the crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616376#M235136</link>
      <description>If I want to run from monday to friday but except  1-9th , can suggest how to set ? thx</description>
      <pubDate>Wed, 31 Aug 2005 21:52:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616376#M235136</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-08-31T21:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: about the crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616377#M235137</link>
      <description>It cannot be done with cron. You have to modify your job to test for the current day of the month and if it is 1-9, then exit.</description>
      <pubDate>Wed, 31 Aug 2005 22:51:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616377#M235137</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-08-31T22:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: about the crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616378#M235138</link>
      <description>&lt;BR /&gt;0 9 10-31 * 1-5 command  will run at 9:00 from 10th to 31st each month and from monday to friday.  &lt;BR /&gt;Not sure if it will skip 1 to 9th , as 1-5( that is Monday - to Friday) specified.  Seems you need to control at the job level to set this.&lt;BR /&gt;&lt;BR /&gt;Cheers ,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Aug 2005 23:05:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616378#M235138</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-08-31T23:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: about the crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616379#M235139</link>
      <description>hangyu,&lt;BR /&gt;here is a solution. Leave the crontab with &lt;BR /&gt;0 9 10-31 * 1-5 scriptname&lt;BR /&gt;&lt;BR /&gt;In the script add the check&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;curdate=`/usr/bin/date | awk '{ print $3 }'`&lt;BR /&gt;&lt;BR /&gt;if [ "$curdate" &amp;gt; "9" ] ; then&lt;BR /&gt;&lt;BR /&gt;batchjob&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;this will run the batch job Mon through Friday only if the date is greater than 9&lt;BR /&gt;&lt;BR /&gt;Hope this will resolve your issue&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;DP&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Aug 2005 23:06:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616379#M235139</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2005-08-31T23:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: about the crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616380#M235140</link>
      <description>Pant's solution is good, PLS give point for us</description>
      <pubDate>Wed, 31 Aug 2005 23:10:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616380#M235140</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2005-08-31T23:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: about the crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616381#M235141</link>
      <description>thx Devesh Pant ,&lt;BR /&gt;&lt;BR /&gt;I tried your method , it work perfect , but I am wonder the crontab job condition ( minute ,time , date , month , year ) are not "AND" relation , it seems the job not  to be run only when fullfit all conditions , they seems are "OR" relation. If not use Pant' method , is it possible to meet my requirement by just use crontab function ? thx</description>
      <pubDate>Thu, 08 Sep 2005 02:25:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616381#M235141</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2005-09-08T02:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: about the crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616382#M235142</link>
      <description>Hi,&lt;BR /&gt;Cron is a rather simple scheduling tool, as pointed out in previous posts, it is not always possible (as in your case) to perform scheduling without using additional tests in the script.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Sep 2005 02:39:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-crontab/m-p/3616382#M235142</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2005-09-08T02:39:09Z</dc:date>
    </item>
  </channel>
</rss>

