<?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: Monitoring cron daemon in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004023#M773085</link>
    <description>Thank you Spex..The script is working like da bomb.i have assigned it to sms me &amp;amp; its like a dream for me.thank you</description>
    <pubDate>Tue, 19 Sep 2006 09:21:01 GMT</pubDate>
    <dc:creator>Mohammed_Sirkhot</dc:creator>
    <dc:date>2006-09-19T09:21:01Z</dc:date>
    <item>
      <title>Monitoring cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004020#M773082</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need some help writing a script to start my cron if its not running.It falls over once a month which causes alot of problems.Plain &amp;amp; simple script to start /sbin/rc2.d/S70CRON start</description>
      <pubDate>Tue, 19 Sep 2006 03:02:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004020#M773082</guid>
      <dc:creator>Mohammed_Sirkhot</dc:creator>
      <dc:date>2006-09-19T03:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004021#M773083</link>
      <description>Hi,&lt;BR /&gt;from thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1024003" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1024003&lt;/A&gt;&lt;BR /&gt;see Steven's answer.&lt;BR /&gt;and&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1051115" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1051115&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please also look read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;Your profile says, you have not found any answers point-worthy.</description>
      <pubDate>Tue, 19 Sep 2006 03:27:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004021#M773083</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-09-19T03:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004022#M773084</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# cat croncheck.sh&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;  if [[ $(UNIX95= ps -H -C cron -o pid= | wc -l) -lt 1 ]]&lt;BR /&gt;  then&lt;BR /&gt;    echo "cron restarted:\n$(date)" | mailx -m -s "cron restarted!" root&lt;BR /&gt;    /sbin/init.d/cron start&lt;BR /&gt;  fi&lt;BR /&gt;  sleep 120&lt;BR /&gt;done&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;Change 120 (2 minutes) to whatever interval you wish.  For obvious reasons, you cannot schedule this script to run via cron.  Instead, use 'nohup':&lt;BR /&gt;&lt;BR /&gt;# nohup croncheck.sh &amp;gt; /dev/null 2&amp;amp;&amp;gt;1 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Tue, 19 Sep 2006 08:11:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004022#M773084</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-19T08:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004023#M773085</link>
      <description>Thank you Spex..The script is working like da bomb.i have assigned it to sms me &amp;amp; its like a dream for me.thank you</description>
      <pubDate>Tue, 19 Sep 2006 09:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004023#M773085</guid>
      <dc:creator>Mohammed_Sirkhot</dc:creator>
      <dc:date>2006-09-19T09:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004024#M773086</link>
      <description>Hi,&lt;BR /&gt;so you did not like the:&lt;BR /&gt;MYPROC=sendmail&lt;BR /&gt;COUNT=$(UNIX95=1 ps -C $MYPROC -o pid= -o args= | wc -l)&lt;BR /&gt;if [ $COUNT -lt 1 ]&lt;BR /&gt;then&lt;BR /&gt;/sbin/init.d/$MYPROC start&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;example in the second link given?&lt;BR /&gt;&lt;BR /&gt;Change the sendmail to cron and you had your solution.</description>
      <pubDate>Tue, 19 Sep 2006 09:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004024#M773086</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-09-19T09:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004025#M773087</link>
      <description>No yours works just as well.Because Rex had his on i just copied it &amp;amp; pasted it instead of going to your link.I have tested yours as well &amp;amp; its excellent.Great job by you guys..i can see that i will be learning alot from yous.thank you</description>
      <pubDate>Wed, 20 Sep 2006 00:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004025#M773087</guid>
      <dc:creator>Mohammed_Sirkhot</dc:creator>
      <dc:date>2006-09-20T00:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring cron daemon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004026#M773088</link>
      <description>Problem soterd out.Thanx to you guys for the excellent support</description>
      <pubDate>Wed, 20 Sep 2006 00:13:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-cron-daemon/m-p/5004026#M773088</guid>
      <dc:creator>Mohammed_Sirkhot</dc:creator>
      <dc:date>2006-09-20T00:13:21Z</dc:date>
    </item>
  </channel>
</rss>

