<?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 jobs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284503#M180992</link>
    <description>L.S.&lt;BR /&gt;&lt;BR /&gt;to be honest I do not understand the question. What do you mean with the OR's in your question? How do you determine if the job should be started according to condition 2a OR 2b OR 2c?&lt;BR /&gt;&lt;BR /&gt;JP.</description>
    <pubDate>Mon, 24 May 2004 05:58:43 GMT</pubDate>
    <dc:creator>Jeroen Peereboom</dc:creator>
    <dc:date>2004-05-24T05:58:43Z</dc:date>
    <item>
      <title>cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284496#M180985</link>
      <description>How to submit a cron job which runs through like following:&lt;BR /&gt;&lt;BR /&gt;1. it should run everyday&lt;BR /&gt;2. it should run from 3a.m. to 12 midnight every minute.&lt;BR /&gt;      OR&lt;BR /&gt;   it should run from 4p.m. to 12 midnight every minute&lt;BR /&gt;      OR&lt;BR /&gt;   it should run from 3.10 p.m. to 11.35 p.m. midnight every minute or every hour</description>
      <pubDate>Mon, 24 May 2004 04:58:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284496#M180985</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2004-05-24T04:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284497#M180986</link>
      <description>You must to use cron with "at" command.&lt;BR /&gt;See "at" on man.&lt;BR /&gt;Regards&lt;BR /&gt;Bruno</description>
      <pubDate>Mon, 24 May 2004 05:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284497#M180986</guid>
      <dc:creator>Bruno Ganino</dc:creator>
      <dc:date>2004-05-24T05:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284498#M180987</link>
      <description>Hi,&lt;BR /&gt;It can be done by &lt;BR /&gt;create a file in &lt;BR /&gt;/var/spool/cron/crontabs&lt;BR /&gt;&lt;BR /&gt;#minute  hour  monthday  month  weekday  cmd &lt;BR /&gt;&lt;BR /&gt;  *       3       *       *      *   &lt;BR /&gt;&lt;BR /&gt;Now submit the cron job by &lt;BR /&gt;crontab /var/spool/cron/crontabs/&lt;FILENAME&gt;.&lt;BR /&gt;Not sure about the values for your case but the method is this.&lt;BR /&gt;The above values are a guess for you case pls try it &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Mon, 24 May 2004 05:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284498#M180987</guid>
      <dc:creator>Shaikh Imran</dc:creator>
      <dc:date>2004-05-24T05:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284499#M180988</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;you can achieve it using the same job in several lines&lt;BR /&gt;&lt;BR /&gt;0-59 15-23 * * 1 myjob.sh&lt;BR /&gt;0-59 16-23 * * 2 myjob.sh&lt;BR /&gt;&lt;BR /&gt;this example would run myjob each minute interval from 3pm to midnight on a Monday then from 4pm to midnight on a tuesday&lt;BR /&gt;&lt;BR /&gt;:-) John.</description>
      <pubDate>Mon, 24 May 2004 05:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284499#M180988</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-05-24T05:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284500#M180989</link>
      <description>use crontab -e to create cronfile for schedule.&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Mon, 24 May 2004 05:23:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284500#M180989</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-05-24T05:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284501#M180990</link>
      <description>Hi.&lt;BR /&gt;You have to put in your crontab something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;10 15 1,2,3,4,5,6,7,8 * * * "your_command"&lt;BR /&gt;&lt;BR /&gt;"your_command" should run from 15.10 until 23.10, would have to run every 1 hours!&lt;BR /&gt;&lt;BR /&gt;For further information look "man crontab".&lt;BR /&gt;&lt;BR /&gt;Regards Ernesto.</description>
      <pubDate>Mon, 24 May 2004 05:25:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284501#M180990</guid>
      <dc:creator>Ernesto Cappello</dc:creator>
      <dc:date>2004-05-24T05:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284502#M180991</link>
      <description>Deepu,&lt;BR /&gt;The easiest way would be to put up a job in cron to run every day and in that script you check for times 3.00am to 12 midnight or the other options that you want.&lt;BR /&gt;&lt;BR /&gt;As some one has mentioned, you should look at using 'at' command&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Mobeen</description>
      <pubDate>Mon, 24 May 2004 05:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284502#M180991</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2004-05-24T05:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284503#M180992</link>
      <description>L.S.&lt;BR /&gt;&lt;BR /&gt;to be honest I do not understand the question. What do you mean with the OR's in your question? How do you determine if the job should be started according to condition 2a OR 2b OR 2c?&lt;BR /&gt;&lt;BR /&gt;JP.</description>
      <pubDate>Mon, 24 May 2004 05:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284503#M180992</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-05-24T05:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284504#M180993</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; it should run from 3a.m. to 12 midnight every minute.&lt;BR /&gt;&lt;BR /&gt;* 3-11 * * * command&lt;BR /&gt;&lt;BR /&gt;with this config, command run at 3:00, 3:01, 3:02,... - 11:59. &lt;BR /&gt;&lt;BR /&gt;&amp;gt; it should run from 4p.m. to 12 midnight every minute&lt;BR /&gt;&lt;BR /&gt;* 16-23 * * * command&lt;BR /&gt;&lt;BR /&gt;&amp;gt; it should run from 3.10 p.m. to 11.35 p.m. midnight every minute or every hour &lt;BR /&gt;&lt;BR /&gt;you should set three line config.&lt;BR /&gt;&lt;BR /&gt;10-59 15 * * * command&lt;BR /&gt;* 16-22 * * * command&lt;BR /&gt;0-34 23 * * * command&lt;BR /&gt;&lt;BR /&gt;thanks.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 May 2004 06:04:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284504#M180993</guid>
      <dc:creator>Kiyoshi Miyake</dc:creator>
      <dc:date>2004-05-24T06:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284505#M180994</link>
      <description>Hi, Jeroen,&lt;BR /&gt;'OR' I mean if any condition I use in crontab.  That's all.  Not necessary that I will use all the 'OR' conditions in crontab.   Actually I want to know commands at different situations.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 May 2004 06:19:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284505#M180994</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2004-05-24T06:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284506#M180995</link>
      <description>Hi,&lt;BR /&gt;Ernesto,&lt;BR /&gt;I tried your command.  It is not working. Pls suggest something else.&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 24 May 2004 06:23:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284506#M180995</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2004-05-24T06:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284507#M180996</link>
      <description>Ernesto's command is probably a typo.  There are six fields in a crotnab entry and that one has seven.&lt;BR /&gt; &lt;BR /&gt;You can not do this with one cron entry youwill have to use several as John mentions above.&lt;BR /&gt; &lt;BR /&gt;However, the format of a crontab is like this&lt;BR /&gt; &lt;BR /&gt;MIN HOUR DAY MONTH DAYOFWEEK (0 is Sunday) COMMAND&lt;BR /&gt; &lt;BR /&gt;So your first example would be&lt;BR /&gt; &lt;BR /&gt;0-59 3-23 * * * command&lt;BR /&gt; &lt;BR /&gt;The second one would be&lt;BR /&gt; &lt;BR /&gt;0-59 16-23 * * * command&lt;BR /&gt; &lt;BR /&gt;For once an hour between 3pm and 10pm you'd do something like&lt;BR /&gt; &lt;BR /&gt;0 15-20 * * * command</description>
      <pubDate>Mon, 24 May 2004 06:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284507#M180996</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-05-24T06:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284508#M180997</link>
      <description>Here is a tip I have been using for years to remember the syntax of cron. I add it to the top of the jobs:&lt;BR /&gt;#minute (0-59),&lt;BR /&gt;#|      hour (0-23),&lt;BR /&gt;#|      |       day of the month (1-31),&lt;BR /&gt;#|      |       |       month of the year (1-12),&lt;BR /&gt;#|      |       |       |       day of the week (0-6 with 0=Sunday).&lt;BR /&gt;#|      |       |       |       |       commands&lt;BR /&gt;#0      2       *       *       0,4     /rcd/scripts/myjob</description>
      <pubDate>Mon, 24 May 2004 08:09:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284508#M180997</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2004-05-24T08:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284509#M180998</link>
      <description>Sorry about the formatting - here it is as an attachment with the proper spacing.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 May 2004 08:18:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284509#M180998</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2004-05-24T08:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284510#M180999</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;it seems you have been given a good explanation of how cron works maybe if you could tell in more detail what you are trying to achieve we can help you with a working solution.&lt;BR /&gt;&lt;BR /&gt;:-) John.</description>
      <pubDate>Mon, 24 May 2004 08:31:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs/m-p/3284510#M180999</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-05-24T08:31:09Z</dc:date>
    </item>
  </channel>
</rss>

