<?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: Crontasks for root user not completing although tasks are executed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontasks-for-root-user-not-completing-although-tasks-are/m-p/3407744#M202061</link>
    <description>Hi,&lt;BR /&gt; try this csh redirection:&lt;BR /&gt;&lt;BR /&gt;50,54,58 * * * * csh -c 'nice $ROOT_HOME/lib/script/testscript.sh' &amp;gt;&amp;amp;/tmp/testscriptlog.txt&lt;BR /&gt;&lt;BR /&gt;but perhaps you should try first to only execute your program at 50 minutes; perhaps it has not finished before 54 - which could cause the problem.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Oct 2004 03:33:32 GMT</pubDate>
    <dc:creator>john korterman</dc:creator>
    <dc:date>2004-10-26T03:33:32Z</dc:date>
    <item>
      <title>Crontasks for root user not completing although tasks are executed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontasks-for-root-user-not-completing-although-tasks-are/m-p/3407742#M202059</link>
      <description>Hi,&lt;BR /&gt;Some crontasks (only for root user) are failing with return code rc=1 in our system. (I could see this from cron log) &lt;BR /&gt;I modified crontab and removed redirection from tasks so that errors encountered while executing that task could &lt;BR /&gt;be sent as a message (mail) to the administrator. (read from 'mailx' using  root# mailx) but unfortunately the mail&lt;BR /&gt;messages are not coming.&lt;BR /&gt;~~~~&lt;BR /&gt;&lt;BR /&gt;50,54,58 * * * * csh -c 'nice $ROOT_HOME/lib/script/testscript.sh'&lt;BR /&gt;&lt;BR /&gt;==&amp;gt; removed &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 from the task &lt;BR /&gt;~~~~&lt;BR /&gt;I want to check  the status of execution the crontasks to investigate why the tasks are not completing although the  commands are executed by cron. Is there any other way out ???&lt;BR /&gt;&lt;BR /&gt;I tried modifying crontab by redirecting the command stdout to some temp file :-&lt;BR /&gt;~~~~&lt;BR /&gt;&lt;BR /&gt;50,54,58 * * * * csh -c 'nice $ROOT_HOME/lib/script/testscript.sh'&amp;gt; /tmp/testscriptlog.txt&lt;BR /&gt;~~~~&lt;BR /&gt;&lt;BR /&gt;but it did not work only the file is created in /tmp, the error is not logged in the file.&lt;BR /&gt;kindly help with your suggestions.&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2004 03:10:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontasks-for-root-user-not-completing-although-tasks-are/m-p/3407742#M202059</guid>
      <dc:creator>Kripal_1</dc:creator>
      <dc:date>2004-10-26T03:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Crontasks for root user not completing although tasks are executed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontasks-for-root-user-not-completing-although-tasks-are/m-p/3407743#M202060</link>
      <description>You must also redirect STDERR. This could be done with&lt;BR /&gt;... &amp;gt; /tmp/testscriptlog.txt 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2004 03:20:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontasks-for-root-user-not-completing-although-tasks-are/m-p/3407743#M202060</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-10-26T03:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Crontasks for root user not completing although tasks are executed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontasks-for-root-user-not-completing-although-tasks-are/m-p/3407744#M202061</link>
      <description>Hi,&lt;BR /&gt; try this csh redirection:&lt;BR /&gt;&lt;BR /&gt;50,54,58 * * * * csh -c 'nice $ROOT_HOME/lib/script/testscript.sh' &amp;gt;&amp;amp;/tmp/testscriptlog.txt&lt;BR /&gt;&lt;BR /&gt;but perhaps you should try first to only execute your program at 50 minutes; perhaps it has not finished before 54 - which could cause the problem.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2004 03:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontasks-for-root-user-not-completing-although-tasks-are/m-p/3407744#M202061</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2004-10-26T03:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Crontasks for root user not completing although tasks are executed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontasks-for-root-user-not-completing-although-tasks-are/m-p/3407745#M202062</link>
      <description>Hi, &lt;BR /&gt;/tmp/testscriptlog.txt 2&amp;gt;&amp;amp;1&lt;BR /&gt;works thanks very much for your help &lt;BR /&gt;&lt;BR /&gt;Rgds</description>
      <pubDate>Tue, 26 Oct 2004 04:08:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontasks-for-root-user-not-completing-although-tasks-are/m-p/3407745#M202062</guid>
      <dc:creator>Kripal_1</dc:creator>
      <dc:date>2004-10-26T04:08:26Z</dc:date>
    </item>
  </channel>
</rss>

