<?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 batch job question in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978500#M27772</link>
    <description>Court,&lt;BR /&gt;&lt;BR /&gt;I made my suggestion based on the fact that I'm too old and too lazy to type in four lines.  :)&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 10 Apr 2007 14:55:14 GMT</pubDate>
    <dc:creator>John Poff</dc:creator>
    <dc:date>2007-04-10T14:55:14Z</dc:date>
    <item>
      <title>Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978496#M27768</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have this cron job that runs every 15 minutes.  Now, I would like to have it run 4 times a day, starting at 6:30 AM.  How would I change the time format in the cron job?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Jorge</description>
      <pubDate>Tue, 10 Apr 2007 13:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978496#M27768</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2007-04-10T13:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978497#M27769</link>
      <description>a simple solution would be to add 4 separate cron entries in /etc/crontab. set each of them to run at the specified times that you want.</description>
      <pubDate>Tue, 10 Apr 2007 13:50:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978497#M27769</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-10T13:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978498#M27770</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;One way to do it is:&lt;BR /&gt;&lt;BR /&gt;30 6,12,18,00 * * * /some/batch/script&lt;BR /&gt;&lt;BR /&gt;which would run it at 6:30am, 12:30pm, 6:30pm, and 12:30am.&lt;BR /&gt;&lt;BR /&gt;Try a 'man 5 crontab' to arrive at true cron job enlightenment.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2007 13:52:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978498#M27770</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2007-04-10T13:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978499#M27771</link>
      <description>Use John's suggestion. It is much cleaner. I have no excuse for not suggesting that in the first place. but as I always say, there is more that one way to do it.</description>
      <pubDate>Tue, 10 Apr 2007 13:58:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978499#M27771</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-10T13:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978500#M27772</link>
      <description>Court,&lt;BR /&gt;&lt;BR /&gt;I made my suggestion based on the fact that I'm too old and too lazy to type in four lines.  :)&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2007 14:55:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978500#M27772</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2007-04-10T14:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978501#M27773</link>
      <description>Great.  I will give that try.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Jorge</description>
      <pubDate>Tue, 10 Apr 2007 15:12:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978501#M27773</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2007-04-10T15:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978502#M27774</link>
      <description>For what is worth,cron knows about steps, so if you have a regular interval between the runs, you could use&lt;BR /&gt;30 6/6 * * * /some/batch/script&lt;BR /&gt;&lt;BR /&gt;Which translates into start at 6:30 (the first 6 in the hours field plus the minutes field) and run after every 6hrs (24hrs/4= 6 hrs =&amp;gt; second 6 in the hours field)</description>
      <pubDate>Tue, 10 Apr 2007 19:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978502#M27774</guid>
      <dc:creator>Manuel Wolfshant</dc:creator>
      <dc:date>2007-04-10T19:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978503#M27775</link>
      <description>Just a caution for the previous post.&lt;BR /&gt;&lt;BR /&gt;This will work fine on the cron daemon used on most Linux distributions for the past 10 years or so (go Vixie crond!); just be careful when you use other OS's.  Some of them don't have a cron daemon as flexable.&lt;BR /&gt;&lt;BR /&gt;Other things to note are things like '/etc/crontab', and '/etc/cron.d/' on top of user crontab's (modified using '/usr/bin/crontab -e'.&lt;BR /&gt;&lt;BR /&gt;So very very useful, especially for distributing jobs to other servers.. ;)</description>
      <pubDate>Tue, 10 Apr 2007 19:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978503#M27775</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-04-10T19:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978504#M27776</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I made the changes like John had recommended.  However, the cron job is not running though.  I can't seem to see any syntax errors.  Although, is there a space after the comma (30 06,10,13,19, ei)&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jorge</description>
      <pubDate>Wed, 11 Apr 2007 11:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978504#M27776</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2007-04-11T11:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978505#M27777</link>
      <description>&lt;!--!*#--&gt;Try it without any spaces in the list for the hours, and try redirecting output to a file:&lt;BR /&gt;&lt;BR /&gt;30 6,12,18,00 * * * /some/batch/script &amp;gt;&amp;gt;/var/tmp/script.out 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Also, you might want to check permissions and ownership of your script, as well as setting the PATH explicitly inside of the script.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2007 14:48:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978505#M27777</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2007-04-11T14:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978506#M27778</link>
      <description>You might also want to check cron's log for errors, which is (usually) in /var/log/cron&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Rob&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2007 16:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978506#M27778</guid>
      <dc:creator>Rob Leadbeater</dc:creator>
      <dc:date>2007-04-11T16:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978507#M27779</link>
      <description>see if /etc/cron.allow exists. if it does make sure the account running the job is located in the file. otherwise see if the account is listed in /etc/cron.deny and remove it from that file. Just a hunch.</description>
      <pubDate>Thu, 12 Apr 2007 12:31:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978507#M27779</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-12T12:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cron batch job question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978508#M27780</link>
      <description>OK, i am an idiot. You were are already running the jobs successfully. Ignore my last post.</description>
      <pubDate>Thu, 12 Apr 2007 12:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-batch-job-question/m-p/3978508#M27780</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-12T12:32:28Z</dc:date>
    </item>
  </channel>
</rss>

