<?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 working for user in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006241#M66981</link>
    <description>After some "playing" the cron scheduler started picking up and executing the job.  I can't say for sure what the answer was.  I am now using a blank /etc/cron.deny, no /etc/cron.allow.  I restarted the cron scheduler (service crond restart).&lt;BR /&gt;&lt;BR /&gt;The puzzling thing for me is that these are all things I tried before.  The cron log shows a lot of edit &amp;amp; list activity for the user but didn't show and CMD activity until it started running.&lt;BR /&gt;&lt;BR /&gt;Thanks to those who replied.</description>
    <pubDate>Mon, 02 Oct 2006 13:24:37 GMT</pubDate>
    <dc:creator>David Wall</dc:creator>
    <dc:date>2006-10-02T13:24:37Z</dc:date>
    <item>
      <title>Cron not working for user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006235#M66975</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a user (not root) cron job that won't start.  Nothing in mail and nothing in /var/log/cron.  The crontab is as follows:&lt;BR /&gt;## ## * * * /u06/scripts/test1.sh&lt;BR /&gt;&lt;BR /&gt;There is no /etc/cron.allow and /etc/cron.deny is empty.  I have tried creating a /etc/cron.allow and putting in the user id with no luck.&lt;BR /&gt;&lt;BR /&gt;The cron log shows the crontab edits but doesn't kick off the job.&lt;BR /&gt;&lt;BR /&gt;I have restarted the crond service and server.&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 30 Sep 2006 16:26:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006235#M66975</guid>
      <dc:creator>David Wall</dc:creator>
      <dc:date>2006-09-30T16:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cron not working for user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006236#M66976</link>
      <description>"#" is a comment, you should change your crontab to &lt;BR /&gt;&lt;BR /&gt;0 0 * * * /u06/scripts/test1.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for example, if you want to run this script once a day.</description>
      <pubDate>Sun, 01 Oct 2006 01:23:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006236#M66976</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2006-10-01T01:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cron not working for user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006237#M66977</link>
      <description>Try to execute /u06/scripts/test1.sh and see if it works  without cron (it has to have exec permissions). One more thing to try is to append redirection of STDERR (errors) to some file and see what you get.</description>
      <pubDate>Sun, 01 Oct 2006 04:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006237#M66977</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-10-01T04:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cron not working for user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006238#M66978</link>
      <description>Sorry, I forgot to mention that I put in "# #" just as place holders for my question.  I keep changing the # # to whatever time is 2 minutes in the future and wait to see what happens (ie.  55 14 * * * /u06/scripts/test1.sh for 2:55 pm).&lt;BR /&gt;&lt;BR /&gt;I can run the script outside of cron without any problems.&lt;BR /&gt;&lt;BR /&gt;Still no luck yet.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2006 07:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006238#M66978</guid>
      <dc:creator>David Wall</dc:creator>
      <dc:date>2006-10-02T07:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cron not working for user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006239#M66979</link>
      <description>Check the classpath for the script. &lt;BR /&gt;Cron runs with a sanitized classpath of&lt;BR /&gt;bin:/usr/bin&lt;BR /&gt;&lt;BR /&gt;Try a test script that just runs the env command.&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2006 08:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006239#M66979</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2006-10-02T08:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cron not working for user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006240#M66980</link>
      <description>So you should follow Alexander and Bill suggestinons:&lt;BR /&gt;1) check that you can run script via command line&lt;BR /&gt;2) compare your command line and crontab's environment variables - PATH and others.&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2006 13:14:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006240#M66980</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2006-10-02T13:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cron not working for user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006241#M66981</link>
      <description>After some "playing" the cron scheduler started picking up and executing the job.  I can't say for sure what the answer was.  I am now using a blank /etc/cron.deny, no /etc/cron.allow.  I restarted the cron scheduler (service crond restart).&lt;BR /&gt;&lt;BR /&gt;The puzzling thing for me is that these are all things I tried before.  The cron log shows a lot of edit &amp;amp; list activity for the user but didn't show and CMD activity until it started running.&lt;BR /&gt;&lt;BR /&gt;Thanks to those who replied.</description>
      <pubDate>Mon, 02 Oct 2006 13:24:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-not-working-for-user/m-p/5006241#M66981</guid>
      <dc:creator>David Wall</dc:creator>
      <dc:date>2006-10-02T13:24:37Z</dc:date>
    </item>
  </channel>
</rss>

