<?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: crontab not working in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763067#M389280</link>
    <description>Catch the output of the script by redirecting the stdout and stderr to a file:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;13 13 * * 3 /usr/bin/sh /UX-DR/IS/syslog/Syslog_Analysis_Script.sh 1&amp;gt;/tmp/Syslog_Analysis_Script.sh.out 2&amp;gt;/tmp/Syslog_Analysis_Script.sh&lt;BR /&gt;&lt;BR /&gt;look for possible errors in that file. The most frequent problem with a cron script is, that it does not inherit the environmental variables from your shell. (like PATH)&lt;BR /&gt;So probably you forgot to use declaring commands with full path. But look at the output and you'll see the problem.&lt;BR /&gt;</description>
    <pubDate>Wed, 09 Mar 2011 09:04:08 GMT</pubDate>
    <dc:creator>Viktor Balogh</dc:creator>
    <dc:date>2011-03-09T09:04:08Z</dc:date>
    <item>
      <title>crontab not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763066#M389279</link>
      <description>I have scheduled a script in crontab.&lt;BR /&gt;When i tried to run the script manually its working.&lt;BR /&gt;&lt;BR /&gt;But in crontab its not running.&lt;BR /&gt;&lt;BR /&gt;entry is::&lt;BR /&gt;&lt;BR /&gt;13 13 * * 3 /usr/bin/sh /UX-DR/IS/syslog/Syslog_Analysis_Script.sh&lt;BR /&gt;&lt;BR /&gt;every wednesday 01.13 PM i need to run.&lt;BR /&gt;&lt;BR /&gt;Please help where i can check the error.&lt;BR /&gt;What may the possible error</description>
      <pubDate>Wed, 09 Mar 2011 08:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763066#M389279</guid>
      <dc:creator>satheeshnp</dc:creator>
      <dc:date>2011-03-09T08:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: crontab not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763067#M389280</link>
      <description>Catch the output of the script by redirecting the stdout and stderr to a file:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;13 13 * * 3 /usr/bin/sh /UX-DR/IS/syslog/Syslog_Analysis_Script.sh 1&amp;gt;/tmp/Syslog_Analysis_Script.sh.out 2&amp;gt;/tmp/Syslog_Analysis_Script.sh&lt;BR /&gt;&lt;BR /&gt;look for possible errors in that file. The most frequent problem with a cron script is, that it does not inherit the environmental variables from your shell. (like PATH)&lt;BR /&gt;So probably you forgot to use declaring commands with full path. But look at the output and you'll see the problem.&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Mar 2011 09:04:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763067#M389280</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-03-09T09:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: crontab not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763068#M389281</link>
      <description>Check your environment differences between command line and cron.&lt;BR /&gt;&lt;BR /&gt;$ env &amp;gt; /tmp/mycommandline.env&lt;BR /&gt;&lt;BR /&gt;and add that command to your script&lt;BR /&gt;env &amp;gt; /tmp/mycron.env&lt;BR /&gt;&lt;BR /&gt;Then check that you are giving the full path to commands in your script.&lt;BR /&gt;&lt;BR /&gt;Read the man page on cron, crontab for further information such as:&lt;BR /&gt;&lt;BR /&gt;The shell is invoked from your $HOME directory with an arg0&lt;BR /&gt;of sh. Users who desire to have their .profile executed must&lt;BR /&gt;explicitly do so in the crontab file.</description>
      <pubDate>Wed, 09 Mar 2011 18:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763068#M389281</guid>
      <dc:creator>Manix</dc:creator>
      <dc:date>2011-03-09T18:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: crontab not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763069#M389282</link>
      <description>Do check !!&lt;BR /&gt;&lt;BR /&gt;1. File permission (execute permission).&lt;BR /&gt;2. Path of the script (specify the complete path), from your example the file should be located in root (/).</description>
      <pubDate>Wed, 09 Mar 2011 18:03:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763069#M389282</guid>
      <dc:creator>Manix</dc:creator>
      <dc:date>2011-03-09T18:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: crontab not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763070#M389283</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Is cron running?&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep cron&lt;BR /&gt;&lt;BR /&gt;post&lt;BR /&gt;&lt;BR /&gt;Check /etc/rc.config.d/cron&lt;BR /&gt;&lt;BR /&gt;Make sure it is set to auto start.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;Also note that the environment on cron is different than the user environment.&lt;BR /&gt;&lt;BR /&gt;PATH and such needs to be set in your script.&lt;BR /&gt;&lt;BR /&gt;env &amp;gt; /tmp/env.txt&lt;BR /&gt;&lt;BR /&gt;Good diagnostic tool for the script being run in cron&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 09 Mar 2011 18:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763070#M389283</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2011-03-09T18:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: crontab not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763071#M389284</link>
      <description>If the user account which is to run the cron job is disabled or locked out, it can prevent cron jobs from running as well.</description>
      <pubDate>Wed, 09 Mar 2011 20:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763071#M389284</guid>
      <dc:creator>mvpel</dc:creator>
      <dc:date>2011-03-09T20:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: crontab not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763072#M389285</link>
      <description>&amp;gt;13 13 * * 3 /usr/bin/sh /UX-DR/IS/syslog/Syslog_Analysis_Script.sh&lt;BR /&gt;&lt;BR /&gt;This should work.  Do you get any mail with any error messages?&lt;BR /&gt;&lt;BR /&gt;Typically you don't need to use /usr/bin/sh in your crontab entry.&lt;BR /&gt;You should have "#!/usr/bin/sh" in your script.</description>
      <pubDate>Thu, 10 Mar 2011 10:23:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-not-working/m-p/4763072#M389285</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-10T10:23:38Z</dc:date>
    </item>
  </channel>
</rss>

