<?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 Job in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930362#M111487</link>
    <description>the crontab -l :&lt;BR /&gt;&lt;BR /&gt;30 21 6,10,13,17,20,27 3 * /usr/bin/su -root -c /home/chess32/chess32_mrp&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 19 Mar 2003 02:24:29 GMT</pubDate>
    <dc:creator>Cat_4</dc:creator>
    <dc:date>2003-03-19T02:24:29Z</dc:date>
    <item>
      <title>Cron Job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930359#M111484</link>
      <description>I changed my cron schedule from 21:50 to 21:30 last night by crontab -e. However, I found the job run 2 times: one is 21:30 and the other is 22:00. &lt;BR /&gt;&lt;BR /&gt;1. Could anyone tell me why this unexpected cron job run again ?? And why the time is 22:00 ?? &lt;BR /&gt;&lt;BR /&gt;2. Is that any guilelines for schedule a cron job ? for example, avoid running different job at the same time ??&lt;BR /&gt;&lt;BR /&gt;thanks in advance.&lt;BR /&gt;&lt;BR /&gt;best regards,&lt;BR /&gt;Cat&lt;BR /&gt;&lt;BR /&gt;p.s. My editing time is 21:27, but I don't think they are related ...</description>
      <pubDate>Wed, 19 Mar 2003 01:35:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930359#M111484</guid>
      <dc:creator>Cat_4</dc:creator>
      <dc:date>2003-03-19T01:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930360#M111485</link>
      <description>Can you post the output of 'crontab -l' so we can see what is in the crontab.&lt;BR /&gt;&lt;BR /&gt;Unless you have the job specified twice in cron, there really isn't a way for cron to run it twice.</description>
      <pubDate>Wed, 19 Mar 2003 02:09:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930360#M111485</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-03-19T02:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930361#M111486</link>
      <description>your crontab entry should look like the following in order to run at 21:30 every night.&lt;BR /&gt;&lt;BR /&gt;30 21 * * * /path/to/job_to_run&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would check for a double entry as well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Jeremiah</description>
      <pubDate>Wed, 19 Mar 2003 02:10:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930361#M111486</guid>
      <dc:creator>Jeremiah Campbell_1</dc:creator>
      <dc:date>2003-03-19T02:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930362#M111487</link>
      <description>the crontab -l :&lt;BR /&gt;&lt;BR /&gt;30 21 6,10,13,17,20,27 3 * /usr/bin/su -root -c /home/chess32/chess32_mrp&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Mar 2003 02:24:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930362#M111487</guid>
      <dc:creator>Cat_4</dc:creator>
      <dc:date>2003-03-19T02:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930363#M111488</link>
      <description>that appears to be correct if you want to run the script on the 6th,10th,13th,17th,20th, &amp;amp; 27th of March at 21:30.&lt;BR /&gt;&lt;BR /&gt;I also see that you are doing an su to root, Is this the crontab for an alternate user? If that is the case, then have you checked everyones crontab to ensure that their is not a duplicate in someone elses crontab?</description>
      <pubDate>Wed, 19 Mar 2003 02:54:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930363#M111488</guid>
      <dc:creator>Jeremiah Campbell_1</dc:creator>
      <dc:date>2003-03-19T02:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930364#M111489</link>
      <description>You can also have a look at the /var/adm/cron/log file to see what / what started the job at 22:00.&lt;BR /&gt;&lt;BR /&gt;I would also question why you are doing an 'su - root' in the crontab.  Why not just run the job from root's crontab?</description>
      <pubDate>Wed, 19 Mar 2003 03:06:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930364#M111489</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-03-19T03:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930365#M111490</link>
      <description>There are no guidelines as to when you run things.&lt;BR /&gt;&lt;BR /&gt;Things to remember.&lt;BR /&gt;&lt;BR /&gt;You have no environment, no path.&lt;BR /&gt;&lt;BR /&gt;If you want to use a utility in your script, use the full path name.&lt;BR /&gt;&lt;BR /&gt;Post the crontab entry, but if it runs when you don't expect it, its probably just a typo.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 19 Mar 2003 03:08:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930365#M111490</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-19T03:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930366#M111491</link>
      <description>thanks for all your advice. i should regard this as typo error. Hope it won't be happened again.&lt;BR /&gt;&lt;BR /&gt;Cheers ! &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Mar 2003 03:47:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930366#M111491</guid>
      <dc:creator>Cat_4</dc:creator>
      <dc:date>2003-03-19T03:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930367#M111492</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i usually use the following template for my crontabs. This elimates all the risks of any typo errors.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# min|hour |day  |month|day  |script&lt;BR /&gt;#    |     |of mo|     |of wk|&lt;BR /&gt;#----|-----|-----|-----|-----|--------------------------------------------------&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;&lt;YOUR entries="" do="" here=""&gt;&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# END OF TABLE           day0-&amp;gt;Sunday  day6-&amp;gt;Saturday&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;/YOUR&gt;</description>
      <pubDate>Wed, 19 Mar 2003 05:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/2930367#M111492</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-03-19T05:15:07Z</dc:date>
    </item>
  </channel>
</rss>

