<?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: Crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805826#M82983</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I don't think it's possible to do.&lt;BR /&gt;&lt;BR /&gt;As my opinion, I will either separate the cronjob into 2 time range or just skip your time range in your schedule task.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
    <pubDate>Fri, 13 Sep 2002 08:25:55 GMT</pubDate>
    <dc:creator>Patrick Chim</dc:creator>
    <dc:date>2002-09-13T08:25:55Z</dc:date>
    <item>
      <title>Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805823#M82980</link>
      <description>When setup a crontab job ,  can i exclude a period of time to run the schedule.&lt;BR /&gt;&lt;BR /&gt;eg.&lt;BR /&gt;&lt;BR /&gt;Run the schedule task from 9am to 17pm but except 1pm ??? 2pm &lt;BR /&gt;&lt;BR /&gt;0,30 9-17 * * *   schedule task</description>
      <pubDate>Fri, 13 Sep 2002 08:18:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805823#M82980</guid>
      <dc:creator>O'lnes</dc:creator>
      <dc:date>2002-09-13T08:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805824#M82981</link>
      <description>I dont think you can do it in one line. We have jobs like this and end up having to have 2 lines, eg, one for 9-1pm and one for 2pm-17</description>
      <pubDate>Fri, 13 Sep 2002 08:24:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805824#M82981</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-09-13T08:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805825#M82982</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;0,30 9-12,15-17 * * * schedule task&lt;BR /&gt;or&lt;BR /&gt;0,30 9,10,11,12,15,16,17 * * * schedule task</description>
      <pubDate>Fri, 13 Sep 2002 08:25:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805825#M82982</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-09-13T08:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805826#M82983</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I don't think it's possible to do.&lt;BR /&gt;&lt;BR /&gt;As my opinion, I will either separate the cronjob into 2 time range or just skip your time range in your schedule task.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Fri, 13 Sep 2002 08:25:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805826#M82983</guid>
      <dc:creator>Patrick Chim</dc:creator>
      <dc:date>2002-09-13T08:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805827#M82984</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;workaround to your example: you need two crontab entries, one for 9-13 and one for 14-17.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Dirk</description>
      <pubDate>Fri, 13 Sep 2002 08:27:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805827#M82984</guid>
      <dc:creator>Dirk Wiedemann</dc:creator>
      <dc:date>2002-09-13T08:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805828#M82985</link>
      <description>Whilst cron is not designed to disallow certain times from its criteria, this may not be the best way of NOT running a script/program.&lt;BR /&gt;&lt;BR /&gt;Maybe the alternative is to run the script/program but place the time check in the script/program itself??&lt;BR /&gt;&lt;BR /&gt;The following could be placed in a script to stop a job running if the hour resturns as 10.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;TEST=`date +%H`&lt;BR /&gt;if [ $DATE = 10 ]&lt;BR /&gt;        then&lt;BR /&gt;                exit 1&lt;BR /&gt;        else&lt;BR /&gt;                run-job.sh&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps.  Thinking sideways is always an art form.&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Sep 2002 08:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805828#M82985</guid>
      <dc:creator>Jim_116</dc:creator>
      <dc:date>2002-09-13T08:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805829#M82986</link>
      <description>Hi&lt;BR /&gt;Perhaps I have misunderstod something but I can't see why this should not could be done in one line.&lt;BR /&gt;I made a simple test (but with minutes instead of hours.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# crontab -l&lt;BR /&gt;10-15,51-54,56-59 * * * *  date &amp;gt;&amp;gt;/tmp/abc&lt;BR /&gt;# &lt;BR /&gt;# cat abc&lt;BR /&gt;date&lt;BR /&gt;Fri Sep 13 03:51:01 MDT 2002&lt;BR /&gt;Fri Sep 13 03:52:00 MDT 2002&lt;BR /&gt;Fri Sep 13 03:53:00 MDT 2002&lt;BR /&gt;Fri Sep 13 03:54:00 MDT 2002&lt;BR /&gt;Fri Sep 13 03:56:00 MDT 2002&lt;BR /&gt;Fri Sep 13 03:57:00 MDT 2002&lt;BR /&gt;Fri Sep 13 03:58:00 MDT 2002&lt;BR /&gt;Fri Sep 13 03:59:00 MDT 2002&lt;BR /&gt;Fri Sep 13 04:10:00 MDT 2002&lt;BR /&gt;Fri Sep 13 04:11:00 MDT 2002&lt;BR /&gt;Fri Sep 13 04:12:00 MDT 2002&lt;BR /&gt;Fri Sep 13 04:13:00 MDT 2002&lt;BR /&gt;Fri Sep 13 04:14:00 MDT 2002&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Sep 2002 09:14:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805829#M82986</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-09-13T09:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805830#M82987</link>
      <description>Leif, you are absolut right. I've forgotten my brain at home today ;-)&lt;BR /&gt;&lt;BR /&gt;Dirk</description>
      <pubDate>Fri, 13 Sep 2002 09:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805830#M82987</guid>
      <dc:creator>Dirk Wiedemann</dc:creator>
      <dc:date>2002-09-13T09:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805831#M82988</link>
      <description>Why wouldn't this work:&lt;BR /&gt;&lt;BR /&gt;0,30 9-12,14-17 * * * myJob&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;0,30 9,10,11,12,14,15,16,17 * * * myJob&lt;BR /&gt;&lt;BR /&gt;This should fire off at the 0 and 30 minutes of every hour 9, 10, 11, 12, then skip the 0 and 30 minutes of 1pm, then fire off the 0 and 30 minutes of 2pm, 3, 4, and 5.&lt;BR /&gt;&lt;BR /&gt;I assume lunch hour is being skipped.&lt;BR /&gt;&lt;BR /&gt;Am I missing something?&lt;BR /&gt;&lt;BR /&gt;- Allan</description>
      <pubDate>Fri, 13 Sep 2002 11:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805831#M82988</guid>
      <dc:creator>Allan Pincus</dc:creator>
      <dc:date>2002-09-13T11:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805832#M82989</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Leif's solution is simple, commonly accepted, and in a word "correct".&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Fri, 13 Sep 2002 11:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2805832#M82989</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-09-13T11:43:16Z</dc:date>
    </item>
  </channel>
</rss>

