<?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 not running in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890670#M45421</link>
    <description>Sanjith,&lt;BR /&gt;Its most of the time as mentioned by others due to environment not being set properly.&lt;BR /&gt;If you are having problems trying to figure it out, post it here and the one having sharp eyes will get it first :)&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;Mobeen</description>
    <pubDate>Fri, 11 Mar 2005 06:17:04 GMT</pubDate>
    <dc:creator>Mobeen_1</dc:creator>
    <dc:date>2005-03-11T06:17:04Z</dc:date>
    <item>
      <title>cron not running</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890665#M45416</link>
      <description>Hi all, have a dilemma here. I have a cronjob that runs sucessfully on the command line but it fails out of cron. Does anyone know what could be causing this issue? I have a system going in production so I need to get this resolved right away. Thanks for your time and points will be assigned.</description>
      <pubDate>Thu, 10 Mar 2005 20:21:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890665#M45416</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2005-03-10T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: cron not running</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890666#M45417</link>
      <description>Different behavior in and out of cron is almost always due to differences in the environment.&lt;BR /&gt;&lt;BR /&gt;add a line to the script:&lt;BR /&gt;&lt;BR /&gt;env &amp;gt; /tmp/$env.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let cron run it and then run it manually.&lt;BR /&gt;&lt;BR /&gt;diff the two files.&lt;BR /&gt;&lt;BR /&gt;There will be different and when corrected the behavior should be consistent.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 10 Mar 2005 23:40:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890666#M45417</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-03-10T23:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: cron not running</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890667#M45418</link>
      <description>Hi,&lt;BR /&gt;Check your env,Cron runs in posix born shell.Also check your syntax when you crontab -e.&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Mar 2005 02:15:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890667#M45418</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-03-11T02:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: cron not running</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890668#M45419</link>
      <description>Please also have a look;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=5398" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=5398&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=449988" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=449988&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Mar 2005 02:18:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890668#M45419</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-03-11T02:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: cron not running</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890669#M45420</link>
      <description>Hi Chand,&lt;BR /&gt;&lt;BR /&gt;   I suggest you can export environment values in the crontab to have a try. For example:&lt;BR /&gt;crontab -e&lt;BR /&gt;====================&lt;BR /&gt;export xxx=xxxx&lt;BR /&gt;*/5 * * * * /test.sh&lt;BR /&gt;=====================&lt;BR /&gt;&lt;BR /&gt;NiCK</description>
      <pubDate>Fri, 11 Mar 2005 04:25:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890669#M45420</guid>
      <dc:creator>NiCK_76</dc:creator>
      <dc:date>2005-03-11T04:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: cron not running</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890670#M45421</link>
      <description>Sanjith,&lt;BR /&gt;Its most of the time as mentioned by others due to environment not being set properly.&lt;BR /&gt;If you are having problems trying to figure it out, post it here and the one having sharp eyes will get it first :)&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;Mobeen</description>
      <pubDate>Fri, 11 Mar 2005 06:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890670#M45421</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2005-03-11T06:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: cron not running</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890671#M45422</link>
      <description>Hi Sanjit,&lt;BR /&gt;&lt;BR /&gt;as all mentioned before, set all needed variables before job is running&lt;BR /&gt;&lt;BR /&gt;bellow is example for my Oracle env.&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;export ORACLE_SID="SMS"&lt;BR /&gt;export TWO_TASK=SMS&lt;BR /&gt;export ORACLE_HOME="/opt/Oracle"&lt;BR /&gt;export PATH="/usr/bin/:$ORACLE_HOME/bin:"&lt;BR /&gt;&lt;BR /&gt;rgds Jan&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Mar 2005 09:58:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890671#M45422</guid>
      <dc:creator>Jan Sladky</dc:creator>
      <dc:date>2005-03-11T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: cron not running</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890672#M45423</link>
      <description>This is the problem. we have elm installed in /usr/local/bin/elm. When I run the script from the command line, it is able find elm and it runs. When I run the same thing out of cron, my output says it is not able to find elm...elm: command not found. The user has a search patch in his profile to search /usr/local/bin. &lt;BR /&gt;&lt;BR /&gt;Also I don't know if it makes a difference but my elm permission is the following..&lt;BR /&gt;&lt;BR /&gt;-rwxr-sr-x    1 bin      mail       325106 Mar 10 13:57 elm&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated and points will be assigned.</description>
      <pubDate>Fri, 11 Mar 2005 11:53:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890672#M45423</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2005-03-11T11:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: cron not running</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890673#M45424</link>
      <description>Hello, thanks for all the time and help. Actually to make it work, I ended up copying elm to /usr/bin.</description>
      <pubDate>Fri, 11 Mar 2005 13:56:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890673#M45424</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2005-03-11T13:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: cron not running</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890674#M45425</link>
      <description>moved elm to /usr/bin.</description>
      <pubDate>Fri, 11 Mar 2005 13:57:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-running/m-p/4890674#M45425</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2005-03-11T13:57:19Z</dc:date>
    </item>
  </channel>
</rss>

