<?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 cron settings in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575990#M228971</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to submit scripts by cron and make it run automatically. I check cron log , there is no error, but the script doesn't run. I don't why. below is the log&lt;BR /&gt;&amp;gt;  CMD: /opt/mfgpro/eB2/localsp7/bin/daily2.batch 1&amp;gt; /tmp/cron/eb2.log 2&amp;gt;&amp;gt;&amp;amp;1&lt;BR /&gt;&amp;gt;  mfg 4167 c Tue Jul  5 08:35:00 EAT 2005&lt;BR /&gt;&amp;lt;  mfg 4167 c Tue Jul  5 08:35:00 EAT 2005 rc=2&lt;BR /&gt;</description>
    <pubDate>Mon, 04 Jul 2005 19:57:25 GMT</pubDate>
    <dc:creator>mtang</dc:creator>
    <dc:date>2005-07-04T19:57:25Z</dc:date>
    <item>
      <title>cron settings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575990#M228971</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to submit scripts by cron and make it run automatically. I check cron log , there is no error, but the script doesn't run. I don't why. below is the log&lt;BR /&gt;&amp;gt;  CMD: /opt/mfgpro/eB2/localsp7/bin/daily2.batch 1&amp;gt; /tmp/cron/eb2.log 2&amp;gt;&amp;gt;&amp;amp;1&lt;BR /&gt;&amp;gt;  mfg 4167 c Tue Jul  5 08:35:00 EAT 2005&lt;BR /&gt;&amp;lt;  mfg 4167 c Tue Jul  5 08:35:00 EAT 2005 rc=2&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jul 2005 19:57:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575990#M228971</guid>
      <dc:creator>mtang</dc:creator>
      <dc:date>2005-07-04T19:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: cron settings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575991#M228972</link>
      <description>Try changing&lt;BR /&gt;&lt;BR /&gt;/opt/mfgpro/eB2/localsp7/bin/daily2.batch 1&amp;gt; /tmp/cron/eb2.log 2&amp;gt;&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;BR /&gt;/opt/mfgpro/eB2/localsp7/bin/daily2.batch 1&amp;gt; /tmp/cron/eb2.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;(only one greater than sign)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jul 2005 20:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575991#M228972</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-07-04T20:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: cron settings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575992#M228973</link>
      <description>Are you checking the cron log file or /tmp/cron/eb2.log file? &lt;BR /&gt;I see from the cron command line above, output from your cron job is redirected to /tmp/cron/eb2.log file. Check this file for any errors.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sudeesh</description>
      <pubDate>Mon, 04 Jul 2005 20:17:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575992#M228973</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2005-07-04T20:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: cron settings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575993#M228974</link>
      <description>Is your script running without cron. ;-) Just kidding.&lt;BR /&gt;&lt;BR /&gt;Make sure any other application is not using the file in which you  are redirecting the output. If this happens your cron will stop.&lt;BR /&gt;You can check this by fuser.&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jul 2005 22:50:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575993#M228974</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-07-04T22:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: cron settings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575994#M228975</link>
      <description>Also if your script refers to other commands, make sure that you use absolute or relative path to the script/command (or setup the PATH variable within the script).&lt;BR /&gt;The PATH environment variable is only containing "/usr/bin:/usr/sbin:." when run from cron.</description>
      <pubDate>Tue, 05 Jul 2005 01:46:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575994#M228975</guid>
      <dc:creator>Kasper Hedensted</dc:creator>
      <dc:date>2005-07-05T01:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: cron settings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575995#M228976</link>
      <description>There was an error - it was just not obvious:&lt;BR /&gt;&amp;lt; mfg 4167 c Tue Jul 5 08:35:00 EAT 2005 rc=2 &amp;lt;--- rc = return code, 2 means the cron job failed.  0 would indicate it's successful.&lt;BR /&gt;&lt;BR /&gt;Run your script outside of cron, if it is not successful, there is a script problem.  If it is successful, but within cron it fails, it means that your script is lacking some environment variable.&lt;BR /&gt;&lt;BR /&gt;Cron runs in a pseudo environment:&lt;BR /&gt;When you login, the .profile and /etc/profile are sourced which sets the necessary environment variables.&lt;BR /&gt;&lt;BR /&gt;In cron these are not set because there is no associated login so you must set any required variables within the script itself.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2005 06:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575995#M228976</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2005-07-06T06:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: cron settings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575996#M228977</link>
      <description>Just to add to Cheryl's response - among the environment variables that won't be set is your PATH, so be sure to either set your path or use full path names  in your script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 06 Jul 2005 06:34:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575996#M228977</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-07-06T06:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: cron settings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575997#M228978</link>
      <description>Hi,&lt;BR /&gt;Let me try to isolate the problem. &lt;BR /&gt;&lt;BR /&gt;1. check whether the cron daemon is running or not.&lt;BR /&gt;&lt;BR /&gt;2. Just tell whether any other scripts are there along with this script.&lt;BR /&gt;&lt;BR /&gt;3. if so do they run properly&lt;BR /&gt;&lt;BR /&gt;4. If this is the only script in cron, please try to run a sample script and check whether it is running properly or not.&lt;BR /&gt;&lt;BR /&gt;25 22 * * * touch /ABCDEF&lt;BR /&gt;&lt;BR /&gt;if the above file is not created, please let me know.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Ravi.</description>
      <pubDate>Thu, 07 Jul 2005 06:17:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-settings/m-p/3575997#M228978</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2005-07-07T06:17:37Z</dc:date>
    </item>
  </channel>
</rss>

