<?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 jobs not executed for specific user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512707#M366002</link>
    <description>We have created some crontab jobs for a specific user.&lt;BR /&gt;We have noticed that none of them is executed any more as scheduled, whereas as manual commands are successful.&lt;BR /&gt;&lt;BR /&gt;Even simple commands under this user's crontab (eg date) are not executed whereas under another crontab with same group and same shell are successful.&lt;BR /&gt;&lt;BR /&gt;Restarting cron daemon does not have any result and&lt;BR /&gt;ps -ef|grep cron&lt;BR /&gt;shows&lt;BR /&gt;# ps -ef|grep cron&lt;BR /&gt;root 13824 13798 0 17:10:25 pts/1 0:00 grep cron&lt;BR /&gt;root 16891 1 0 11:35:35 ? 0:01 /usr/sbin/cron&lt;BR /&gt;&lt;BR /&gt;Can you please advice on what the problem can be?</description>
    <pubDate>Tue, 13 Oct 2009 06:51:49 GMT</pubDate>
    <dc:creator>Panagiotis Tzolio</dc:creator>
    <dc:date>2009-10-13T06:51:49Z</dc:date>
    <item>
      <title>Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512707#M366002</link>
      <description>We have created some crontab jobs for a specific user.&lt;BR /&gt;We have noticed that none of them is executed any more as scheduled, whereas as manual commands are successful.&lt;BR /&gt;&lt;BR /&gt;Even simple commands under this user's crontab (eg date) are not executed whereas under another crontab with same group and same shell are successful.&lt;BR /&gt;&lt;BR /&gt;Restarting cron daemon does not have any result and&lt;BR /&gt;ps -ef|grep cron&lt;BR /&gt;shows&lt;BR /&gt;# ps -ef|grep cron&lt;BR /&gt;root 13824 13798 0 17:10:25 pts/1 0:00 grep cron&lt;BR /&gt;root 16891 1 0 11:35:35 ? 0:01 /usr/sbin/cron&lt;BR /&gt;&lt;BR /&gt;Can you please advice on what the problem can be?</description>
      <pubDate>Tue, 13 Oct 2009 06:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512707#M366002</guid>
      <dc:creator>Panagiotis Tzolio</dc:creator>
      <dc:date>2009-10-13T06:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512708#M366003</link>
      <description>check in cron log what exacttly is happening.&lt;BR /&gt;&lt;BR /&gt;Second you will have to tell how u scheduled the jobs...&lt;BR /&gt;crontab -e or crontab filename&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Tue, 13 Oct 2009 07:08:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512708#M366003</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2009-10-13T07:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512709#M366004</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;you could use su - $user and all your defined crontab scripts could be running under root crontab.&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Tue, 13 Oct 2009 07:13:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512709#M366004</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2009-10-13T07:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512710#M366005</link>
      <description>In the cron log commands are referred but in real they are not executed.&lt;BR /&gt;In the past everything was working properly.&lt;BR /&gt;&lt;BR /&gt;Is it possible that any cron job of this user is hanged and causes the rest of them not to be executed?</description>
      <pubDate>Tue, 13 Oct 2009 07:35:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512710#M366005</guid>
      <dc:creator>Panagiotis Tzolio</dc:creator>
      <dc:date>2009-10-13T07:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512711#M366006</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;when you executing the script manually,&lt;BR /&gt;&lt;BR /&gt;under which user and how ?? &lt;BR /&gt;&lt;BR /&gt;sh shell_script.sh&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Tue, 13 Oct 2009 07:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512711#M366006</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2009-10-13T07:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512712#M366007</link>
      <description>check /usr/lib/cron/cron.allow &amp;amp; cron.deny files are exist or not.&lt;BR /&gt;&lt;BR /&gt;If cron.allow is exist then put the user entry &amp;amp; restart the cron daemon.</description>
      <pubDate>Tue, 13 Oct 2009 07:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512712#M366007</guid>
      <dc:creator>Kanagaraj</dc:creator>
      <dc:date>2009-10-13T07:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512713#M366008</link>
      <description>I agree with D.Kanagaraj, check this out. cron.allow</description>
      <pubDate>Tue, 13 Oct 2009 08:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512713#M366008</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-10-13T08:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512714#M366009</link>
      <description>The user is inside cron.allow.&lt;BR /&gt;&lt;BR /&gt;Is it possible that any cron job of this user is hanged and causes the rest of them not to be executed?</description>
      <pubDate>Tue, 13 Oct 2009 08:52:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512714#M366009</guid>
      <dc:creator>Panagiotis Tzolio</dc:creator>
      <dc:date>2009-10-13T08:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512715#M366010</link>
      <description>No , I do not think so that cron jobs will affect others belongs to that user.&lt;BR /&gt;&lt;BR /&gt;You say cron.allow is OK then&lt;BR /&gt;&lt;BR /&gt;What can you see when examine the logs related with your user:&lt;BR /&gt;&lt;BR /&gt;more /var/adm/syslog/syslog.log&lt;BR /&gt;more /var/adm/cron.log&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;cat /var/adm/cron.log | grep -i &lt;USERNAME&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Tue, 13 Oct 2009 09:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512715#M366010</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-10-13T09:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512716#M366011</link>
      <description>On second though; for test purpose :&lt;BR /&gt;&lt;BR /&gt;try this with user root if you can afford it ?&lt;BR /&gt;&lt;BR /&gt;and write here what is your exactl line in cronjob ?&lt;BR /&gt;&lt;BR /&gt;crontab -e ?</description>
      <pubDate>Tue, 13 Oct 2009 09:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512716#M366011</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-10-13T09:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512717#M366012</link>
      <description>You can find attached the cron log.&lt;BR /&gt;The problematic user is nmcman.&lt;BR /&gt;Does this give you any clue?</description>
      <pubDate>Tue, 13 Oct 2009 10:26:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512717#M366012</guid>
      <dc:creator>Panagiotis Tzolio</dc:creator>
      <dc:date>2009-10-13T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512718#M366013</link>
      <description>The jobs are getting executed but are getting a killed with a ts=9 status. Look for yourself in the cron log&lt;BR /&gt;&amp;gt;  nmcman 19468 c Mon Oct 12 12:00:00 EETDST 2009&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;  nmcman 19468 c Mon Oct 12 12:00:00 EETDST 2009 ts=9&lt;BR /&gt;&lt;BR /&gt;The log entries are intermixed with log entries from other jobs so you have to pair the log entries approprietly. The "&amp;gt;" stands for a job start and the "&amp;lt;" stands for a job exit. You can see the ts=9 at the exit entry. That is a hard kill with a "kill -9" signal. Now a few things to check as to why the jobs are getting killed.&lt;BR /&gt;1. Yes in some cases a command will not run if a another commnad is still executing from before. This is true with commands that lock a file or depend another resource (such as a port or a pipe file or a fifo) which is in use by a previously executed command&lt;BR /&gt;Check with "ps -efu nmcman" to see what else is running by this user.&lt;BR /&gt;2. Check if you are hitting any system limits such as open files, flocks, user processes etc. Look at the /var/adm/syslog/syslog.log for any errors.&lt;BR /&gt;3. Did you recently convert to a trusted system?&lt;BR /&gt;&lt;BR /&gt;You also have too many jobs running every minute. Is that really necessary?</description>
      <pubDate>Tue, 13 Oct 2009 11:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512718#M366013</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-10-13T11:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512719#M366014</link>
      <description>Yes, whenever you cron attempt to run it was immediately killed as TTr said. &lt;BR /&gt;&lt;BR /&gt;Try (if you can use root) the same command with user root OR another user in cronjob:&lt;BR /&gt;&lt;BR /&gt;as far as I can see also nmcman used another commands with this use and also got killed</description>
      <pubDate>Tue, 13 Oct 2009 11:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512719#M366014</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-10-13T11:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512720#M366015</link>
      <description>Exactly!&lt;BR /&gt;The commands fail only for the specific user. All the others are working fine.&lt;BR /&gt;&lt;BR /&gt;I will re-check cron and syslog logs.</description>
      <pubDate>Tue, 13 Oct 2009 11:47:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512720#M366015</guid>
      <dc:creator>Panagiotis Tzolio</dc:creator>
      <dc:date>2009-10-13T11:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512721#M366016</link>
      <description>You can also check if nmcman receives any email from cron regarding the killed job. See if there is anything else in the email.&lt;BR /&gt;&lt;BR /&gt;You can add the -x c-shell flag to the crontab entry so that you get all the commands echoed as they are executed.&lt;BR /&gt;&lt;BR /&gt;... csh -f -x /opt/mv36 ...&lt;BR /&gt;&lt;BR /&gt;You can simplify his cronjob, why did he/she put /../ in there. It does not change anything, it just finds the command more directly.&lt;BR /&gt;... csh -f -x /opt/mv36/core/script/CK ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Check</description>
      <pubDate>Tue, 13 Oct 2009 11:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512721#M366016</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-10-13T11:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512722#M366017</link>
      <description>What OS version are you running?&lt;BR /&gt;&lt;BR /&gt;I would suggest you not write cron scripts using the scummy C shell.&lt;BR /&gt;Unfortunately you have one entry: date &amp;gt;&amp;gt; /home/nmcman/test2.txt&lt;BR /&gt;that uses the posix shell and that aborts too.&lt;BR /&gt;&lt;BR /&gt;One time when cron was aborting, it occurred due to a bogus value of TZ.  What's the value for nmcman?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;TTr: The jobs are getting executed but are getting a killed with a ts=9 status.&lt;BR /&gt;&lt;BR /&gt;Hmm, the last time I looked, kill 9 would be ts=137, 128+9.&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1287859" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1287859&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1212499" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1212499&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1287859" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1287859&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1319191" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1319191&lt;/A&gt;</description>
      <pubDate>Tue, 13 Oct 2009 12:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512722#M366017</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-13T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512723#M366018</link>
      <description>&amp;gt; Dennis: ...kill 9 would be ts=137, 128+9.&lt;BR /&gt;&lt;BR /&gt;Isn't the 128 offset used for the root user only? &lt;BR /&gt;</description>
      <pubDate>Tue, 13 Oct 2009 13:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512723#M366018</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-10-13T13:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512724#M366019</link>
      <description>&amp;gt;TTr: Isn't the 128 offset used for the root user only?&lt;BR /&gt;&lt;BR /&gt;I'm not sure why wait(2) would treat root special?</description>
      <pubDate>Tue, 13 Oct 2009 13:31:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512724#M366019</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-13T13:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512725#M366020</link>
      <description>&amp;gt;TTr: Isn't the 128 offset used for the root user only?&lt;BR /&gt;&lt;BR /&gt;The 128 is used to indicate a coredump was produced.  So you are correct, there was a kill -9.&lt;BR /&gt;SIGKILL is also also occurs when dld detects unsats.  (Not sure how that happens with date(1).)</description>
      <pubDate>Wed, 14 Oct 2009 06:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512725#M366020</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-14T06:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs not executed for specific user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512726#M366021</link>
      <description>Let me remind you that everything was working properly also for this user and no cron job is executed any more as scheduled, whereas as manual commands are successful.&lt;BR /&gt;&lt;BR /&gt;The OS is HP-UX version B.11.23 in a ia64 hp server rx6600.&lt;BR /&gt;&lt;BR /&gt;What else can i check so as to find the root cause of the failure (ts=9)?</description>
      <pubDate>Wed, 14 Oct 2009 06:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-not-executed-for-specific-user/m-p/4512726#M366021</guid>
      <dc:creator>Panagiotis Tzolio</dc:creator>
      <dc:date>2009-10-14T06:43:54Z</dc:date>
    </item>
  </channel>
</rss>

