<?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: How to schedule work in every two hours? two days? etc in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381964#M14148</link>
    <description>No problem at all&lt;BR /&gt;&lt;BR /&gt;30 4,16 * * * /usr/contrib/bin/mirror.sites 2&amp;gt;&amp;amp;1 | mail -s "merijn mirror" your@mail.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;that does a job at 4 am and 4 pm 20 minutes after the hour&lt;BR /&gt;&lt;BR /&gt;change it to:&lt;BR /&gt;&lt;BR /&gt;30 0,2,4,6,9,10,12,14,16,18,20,22 * * * /usr/contrib/bin/mirror.sites 2&amp;gt;&amp;amp;1 | mail -s "merijn mirror" your@mail.com&lt;BR /&gt;&lt;BR /&gt;Now the job runs every two hours in this case at 30 minutes after the hour&lt;BR /&gt;&lt;BR /&gt;The next feild is day of the mont, that asterisk after the 22&lt;BR /&gt;&lt;BR /&gt;pick your days again&lt;BR /&gt;&lt;BR /&gt;30 4 2,4,6,8,10 * * /usr/contrib/bin/mirror.sites 2&amp;gt;&amp;amp;1 | mail -s "merijn mirror" your@mai.com&lt;BR /&gt;&lt;BR /&gt;This runs a job every two days the first 10 days of the month at 4:30 a.m.&lt;BR /&gt;&lt;BR /&gt;All this is fron the wonderful man crontab&lt;BR /&gt;&lt;BR /&gt;My examples email the output as well.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Sun, 19 Sep 2004 22:31:34 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2004-09-19T22:31:34Z</dc:date>
    <item>
      <title>How to schedule work in every two hours? two days? etc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381963#M14147</link>
      <description>I only knew to schedule system work in every one hour,one day,one week by cron, but actually have no idear in every two, or three. &lt;BR /&gt;Can cron do on this way? how?&lt;BR /&gt;&lt;BR /&gt;thanks for your tips&lt;BR /&gt;Fredeirck van targero</description>
      <pubDate>Sun, 19 Sep 2004 22:08:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381963#M14147</guid>
      <dc:creator>frederick van targero_1</dc:creator>
      <dc:date>2004-09-19T22:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to schedule work in every two hours? two days? etc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381964#M14148</link>
      <description>No problem at all&lt;BR /&gt;&lt;BR /&gt;30 4,16 * * * /usr/contrib/bin/mirror.sites 2&amp;gt;&amp;amp;1 | mail -s "merijn mirror" your@mail.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;that does a job at 4 am and 4 pm 20 minutes after the hour&lt;BR /&gt;&lt;BR /&gt;change it to:&lt;BR /&gt;&lt;BR /&gt;30 0,2,4,6,9,10,12,14,16,18,20,22 * * * /usr/contrib/bin/mirror.sites 2&amp;gt;&amp;amp;1 | mail -s "merijn mirror" your@mail.com&lt;BR /&gt;&lt;BR /&gt;Now the job runs every two hours in this case at 30 minutes after the hour&lt;BR /&gt;&lt;BR /&gt;The next feild is day of the mont, that asterisk after the 22&lt;BR /&gt;&lt;BR /&gt;pick your days again&lt;BR /&gt;&lt;BR /&gt;30 4 2,4,6,8,10 * * /usr/contrib/bin/mirror.sites 2&amp;gt;&amp;amp;1 | mail -s "merijn mirror" your@mai.com&lt;BR /&gt;&lt;BR /&gt;This runs a job every two days the first 10 days of the month at 4:30 a.m.&lt;BR /&gt;&lt;BR /&gt;All this is fron the wonderful man crontab&lt;BR /&gt;&lt;BR /&gt;My examples email the output as well.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 19 Sep 2004 22:31:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381964#M14148</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-09-19T22:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to schedule work in every two hours? two days? etc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381965#M14149</link>
      <description>Based on the following setting's,&lt;BR /&gt;  minute         0-59&lt;BR /&gt;  hour           0-23&lt;BR /&gt;  day of month   1-31&lt;BR /&gt;  month          1-12 (or names, see below)&lt;BR /&gt;  day of week    0-7 (0 or 7 is Sun, or use names)&lt;BR /&gt;&lt;BR /&gt;we can schedule the task execution on cron jobs.&lt;BR /&gt;&lt;BR /&gt;To execute every two hours of one task the,&lt;BR /&gt;&lt;BR /&gt;0 0,2,4,6,8,10,12,14,16,18,20,22 * * * command &amp;gt; (redirection)&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;0 0,2,4,6,8,10,12,14,16,18,20,22 * * * uname -a &amp;gt; 1&amp;gt;/tmp/uname.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;To excute it on two days once then,&lt;BR /&gt;0 10 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29 * * uname -a &amp;gt; 1&amp;gt;/tmp/uname.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;It will execute the task at 10.00 on 1,3,.. days of everymonth&lt;BR /&gt;&lt;BR /&gt;Depends upon the setting we can execute tasks with cron.</description>
      <pubDate>Mon, 20 Sep 2004 00:42:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381965#M14149</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-20T00:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to schedule work in every two hours? two days? etc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381966#M14150</link>
      <description>Most modern linux based cron's have the ability first introduced with Vixie cron, and that is:&lt;BR /&gt;&lt;BR /&gt;*/&lt;DIVIDER&gt;&lt;BR /&gt;&lt;BR /&gt;i.e. to perform something every 2 hours, isntead of having a comma-separated-list like SEP suggests (there's nothing wrong with that btw):&lt;BR /&gt;&lt;BR /&gt;15 */2 * * * /path/to/command&lt;BR /&gt;&lt;BR /&gt;Which translates to the comma-separated-list of 0,2,4,6,8,10,12,14,16,18,20,22 - every 2 hours.&lt;BR /&gt;&lt;BR /&gt;It works with all fields in the time specifier.&lt;/DIVIDER&gt;</description>
      <pubDate>Mon, 20 Sep 2004 00:43:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381966#M14150</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-09-20T00:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to schedule work in every two hours? two days? etc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381967#M14151</link>
      <description>Cron do the job with the following format:&lt;BR /&gt;&lt;BR /&gt;minute         0-59&lt;BR /&gt;hour           0-23&lt;BR /&gt;day of month   1-31&lt;BR /&gt;month          1-12 (or names)&lt;BR /&gt;day of week    0-7 (0 or 7 is Sun, or use names)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to schedule a work for every 2 hour  s you can do that by&lt;BR /&gt;&lt;BR /&gt;* */2 * * * /PATH/TO/COMMAND &lt;BR /&gt;&lt;BR /&gt;To schedule for every 2 days:&lt;BR /&gt;* * */2 * * /PATH/TO/COMMAND &lt;BR /&gt;&lt;BR /&gt;See "#man 5 crontab" for more details.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Murugan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Sep 2004 08:50:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-schedule-work-in-every-two-hours-two-days-etc/m-p/3381967#M14151</guid>
      <dc:creator>Senthilmurugan</dc:creator>
      <dc:date>2004-09-21T08:50:29Z</dc:date>
    </item>
  </channel>
</rss>

