<?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 Daemon corrupt? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959875#M415465</link>
    <description>Problem caused by residual invalid Audit ID.</description>
    <pubDate>Wed, 15 Feb 2006 03:22:47 GMT</pubDate>
    <dc:creator>Kevin Lai_1</dc:creator>
    <dc:date>2006-02-15T03:22:47Z</dc:date>
    <item>
      <title>CRON Daemon corrupt?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959870#M415460</link>
      <description>Recently I discovered that my cronjobs had not been running since I rename the machine and changed its IP.&lt;BR /&gt;&lt;BR /&gt;I had restarted by cron daemon with:&lt;BR /&gt;/sbin/init.d/cron stop&lt;BR /&gt;/sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;ps grep shown its running.&lt;BR /&gt;and the /var/adm/cron/log shown the command "executed".&lt;BR /&gt;But in reality the assigned jobs was not run.&lt;BR /&gt;&lt;BR /&gt;What went wrong?&lt;BR /&gt;&lt;BR /&gt;[raphael]:/sbin/init.d&amp;gt;# ls -l /sbin/*/*cron*&lt;BR /&gt;-r-xr-xr-x   1 bin        bin           1275 Nov 14  2000 /sbin/init.d/cron&lt;BR /&gt;lrwxr-xr-x   1 root       root            17 Feb  3  2004 /sbin/rc1.d/K270cron -&amp;gt; /sbin/init.d/cron&lt;BR /&gt;lrwxr-xr-x   1 root       root            17 Feb  3  2004 /sbin/rc2.d/S730cron -&amp;gt; /sbin/init.d/cron&lt;BR /&gt;&lt;BR /&gt;The cron.allow are proper, the file permission are proper..&lt;BR /&gt;&lt;BR /&gt;But I just can't figured out what caused the malfunction.&lt;BR /&gt;&lt;BR /&gt;Anyone?</description>
      <pubDate>Tue, 14 Feb 2006 21:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959870#M415460</guid>
      <dc:creator>Kevin Lai_1</dc:creator>
      <dc:date>2006-02-14T21:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: CRON Daemon corrupt?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959871#M415461</link>
      <description>If show the command "executed", why do you try redirect output of your script?&lt;BR /&gt;#crontab -l &lt;BR /&gt;0,15,30,45 * * * * /yourscripts.sh &amp;gt;&amp;gt;/tmp/yourscript.log 2&amp;gt;&amp;gt;/tmp/yourscript.err&lt;BR /&gt;&lt;BR /&gt;After run your script by cron, look for anything in these files.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Feb 2006 22:15:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959871#M415461</guid>
      <dc:creator>Carlos Roberto Schimidt</dc:creator>
      <dc:date>2006-02-14T22:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: CRON Daemon corrupt?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959872#M415462</link>
      <description>hi kevin,&lt;BR /&gt;&lt;BR /&gt;can you try to schedule a simple script that simply writes "hello world" to a file (e.g. /tmp/helloworld.txt)&lt;BR /&gt;&lt;BR /&gt;script: (helloworld.sh)&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;echo " hello world" &amp;gt; /tmp/helloworld.txt&lt;BR /&gt;#end of script&lt;BR /&gt;&lt;BR /&gt;Add to your crontab: (assuming it is almost 09:00 am)&lt;BR /&gt;&lt;BR /&gt;00   09  *   *   *  /home/yd/helloworld.sh  1&amp;gt;/home/yd/output-helloworld.crn 2&amp;gt;/home/yd/error-helloworld.crn  &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;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;see if it works!&lt;BR /&gt;&lt;BR /&gt;revert&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Tue, 14 Feb 2006 23:42:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959872#M415462</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-02-14T23:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: CRON Daemon corrupt?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959873#M415463</link>
      <description>Did a test, still no output.&lt;BR /&gt;&lt;BR /&gt;My crontab:&lt;BR /&gt;&lt;BR /&gt;0,10,20,30,40,50 * * * * /usr/local/bin/testcron.sh &amp;gt;&amp;gt;/tmp/testcron.log 2&amp;gt;&amp;gt;/tmp/testcron.err&lt;BR /&gt;&lt;BR /&gt;Excerpt of /var/adm/cron/log:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  CMD: /usr/local/bin/testcron.sh &amp;gt;&amp;gt;/tmp/testcron.log 2&amp;gt;&amp;gt;/tmp/testcron.err&lt;BR /&gt;&amp;gt;  root 10926 c Wed Feb 15 14:10:00 SST 2006&lt;BR /&gt;&lt;BR /&gt;There is no testcron.log or testcron.err files created in /tmp&lt;BR /&gt;&lt;BR /&gt;Any idea what went wrong?</description>
      <pubDate>Wed, 15 Feb 2006 01:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959873#M415463</guid>
      <dc:creator>Kevin Lai_1</dc:creator>
      <dc:date>2006-02-15T01:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: CRON Daemon corrupt?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959874#M415464</link>
      <description>Found out the source of the problem.&lt;BR /&gt;&lt;BR /&gt;Mails to the cronjobs owners:&lt;BR /&gt;&lt;BR /&gt;"Cron: Your job did not contain a valid audit ID"&lt;BR /&gt;&lt;BR /&gt;It believe that the switching from Trusted  mode to non-trusted system and at the same time rename my machine name and change the IP address, it might have impaired my cron system.&lt;BR /&gt;&lt;BR /&gt;I shutdown the cron, and remove all the unnecessary audit directories in the /usr/spool/cron.&lt;BR /&gt;&lt;BR /&gt;To be safe, I backup the old crontabs, and mkdir a new crontabs with proper ownership and permission.&lt;BR /&gt;&lt;BR /&gt;Restart the cron daemon.&lt;BR /&gt;&lt;BR /&gt;Now my cron daemon is functioning.&lt;BR /&gt;&lt;BR /&gt;Anyway, thanks for all the assistance I had received.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Feb 2006 03:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959874#M415464</guid>
      <dc:creator>Kevin Lai_1</dc:creator>
      <dc:date>2006-02-15T03:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: CRON Daemon corrupt?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959875#M415465</link>
      <description>Problem caused by residual invalid Audit ID.</description>
      <pubDate>Wed, 15 Feb 2006 03:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-daemon-corrupt/m-p/4959875#M415465</guid>
      <dc:creator>Kevin Lai_1</dc:creator>
      <dc:date>2006-02-15T03:22:47Z</dc:date>
    </item>
  </channel>
</rss>

