<?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 for certain user doesn't work in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5835991#M482148</link>
    <description>&lt;P&gt;&amp;gt;cron log is still same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, since your mail isn't working.&amp;nbsp; You need to put back the redirection of the output:&lt;/P&gt;&lt;P&gt;/usw/app/oracle/admin/CRMISEF1/statspack/test.sh &amp;gt;&amp;gt; /usw/app/oracle/admin/CRMISEF1/statspack/sh.log 2&amp;gt;&amp;amp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then look into sh.log.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Oct 2012 05:47:42 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2012-10-17T05:47:42Z</dc:date>
    <item>
      <title>Crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5826593#M482051</link>
      <description>&lt;P&gt;Hi, I am unable to create a job for certain user (oracle), this user is in /usr/lib/cron/cron.allow, cron service is running and work for other users (such as root), the crontab file is in /usr/spool/cron/crontabs as expected. The crontab log has entry for each execution but the file is NOT executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I inserted to beginning of script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/sh&lt;/P&gt;&lt;P&gt;echo `date` &amp;gt;&amp;gt; /some/path/log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(where /some/path is a path for log file), when I start the script from terminal it create an entry in this log file, it never creates an entry when it is running from cron, therefore the script isn't executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to check why it happens?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a log from cron:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp; CMD: /usw/app/oracle/admin/CRMISEF1/statspack/test.sh &amp;gt;&amp;gt; /usw/app/oracle/admin/CRMISEF1/statspack/sh.log 2&amp;gt;/dev/null&lt;BR /&gt;&amp;gt;&amp;nbsp; oracle 21019 c Mon Oct&amp;nbsp; 8 15:58:00 METDST 2012&lt;BR /&gt;&amp;lt;&amp;nbsp; oracle 21019 c Mon Oct&amp;nbsp; 8 15:58:00 METDST 2012 ts=9&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 13:32:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5826593#M482051</guid>
      <dc:creator>petrbena</dc:creator>
      <dc:date>2012-10-08T13:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5826661#M482053</link>
      <description>&lt;P&gt;First, remove the "2&amp;gt;/dev/null" from the end of the cron job specification. By redirecting the standard error output to /dev/null, you are destroying the error message that would tell you more about the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After removing the "2&amp;gt;/dev/null" part, the cron will gather any error messages the script produces and send them as email to the oracle account. (The email file will be /var/mail/oracle by default; if you don't want to use a real email application, you can read it directly with "more" or similar.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you could replace the "2&amp;gt;/dev/null" part with something like "2&amp;gt;/usw/app/oracle/admin/CRMISEF1/statspack/sh.errorlog", which would redirect the error messages to the file of your choice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 14:27:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5826661#M482053</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-10-08T14:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5826949#M482059</link>
      <description>&lt;P&gt;&amp;gt;echo `date` &amp;gt;&amp;gt; /some/path/log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(You do know you can just use: date &amp;gt;&amp;gt; /some/path/log)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;it never creates an entry when it is running from cron, therefore the script isn't executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then there must be something wrong with your .profile?&amp;nbsp; You might want to change your line to:&lt;/P&gt;&lt;P&gt;#!/bin/sh -x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(And make sure you don't send stderr to /dev/null as Matti said.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&amp;gt;&amp;lt;&amp;nbsp; oracle 21019 c Mon Oct&amp;nbsp; 8 15:58:00 METDST 2012 ts=9&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This says you got exit status 9.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 19:35:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5826949#M482059</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-10-08T19:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5827495#M482072</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I removed the part as you mentioned:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp; CMD: /usw/app/oracle/admin/CRMISEF1/statspack/test.sh &amp;gt;&amp;gt; /usw/app/oracle/admin/CRMISEF1/statspack/sh.log&lt;BR /&gt;&amp;gt;&amp;nbsp; oracle 22478 c Tue Oct&amp;nbsp; 9 10:02:00 METDST 2012&lt;BR /&gt;&amp;lt;&amp;nbsp; oracle 22478 c Tue Oct&amp;nbsp; 9 10:02:01 METDST 2012 ts=9&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;/export/home/oracle$ mail&lt;BR /&gt;No mail.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is no entry in /usw/app/oracle/admin/CRMISEF1/statspack/sh.log please note that test.sh contains only 2 lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/sh&lt;/P&gt;&lt;P&gt;date &amp;gt;&amp;gt; /usw/app/oracle/admin/CRMISEF1/statspack/sh.log&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 07:06:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5827495#M482072</guid>
      <dc:creator>petrbena</dc:creator>
      <dc:date>2012-10-09T07:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5827523#M482073</link>
      <description>&lt;P&gt;&amp;gt; /export/home/oracle$ mail&lt;BR /&gt;&amp;gt; No mail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has someone redirected the mail of the oracle user somewhere else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does /export/home/oracle/.forward file exist?&amp;nbsp; If it exists, read the file to find out where the oracle user's mail goes.&lt;/P&gt;&lt;P&gt;Also check /etc/mail/aliases. Does it mention "oracle"? If you modify /etc/mail/aliases, remember to run "newaliases" after modifications.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 07:35:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5827523#M482073</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-10-09T07:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5827549#M482075</link>
      <description>No, it's not redirected, but I think there is some problem with mail delivery, because despite there were some emails on oracle, I am unable to deliver emails to anyone on that machine, for example&lt;BR /&gt;&lt;BR /&gt;cofftz01:/#mailx oracle&lt;BR /&gt;Subject: test&lt;BR /&gt;this is test&lt;BR /&gt;.&lt;BR /&gt;EOT&lt;BR /&gt;&lt;BR /&gt;/export/home/oracle$ mailx&lt;BR /&gt;No mail for oracle&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Oct 2012 07:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5827549#M482075</guid>
      <dc:creator>petrbena</dc:creator>
      <dc:date>2012-10-09T07:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5827849#M482077</link>
      <description>&lt;P&gt;Please run "bdf". Is your /var or /tmp filesystem 100% full?&lt;/P&gt;&lt;P&gt;If /var is full, it will certainly cause email issues, and might cause some issues to cron too. Since the system logs are written to /var by default, having it 100% full would mean your logs may be incomplete, making troubleshooting harder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If /tmp is full, it will cause many things to fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might also want to look at /var/adm/syslog/mail.log, to get more information on email errors.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 13:10:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5827849#M482077</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-10-09T13:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5828109#M482081</link>
      <description>&lt;P&gt;&amp;gt;there is no entry in /usw/app/oracle/admin/CRMISEF1/statspack/sh.log please note that test.sh contains only 2 lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Redirect stderr to the same logfile in crontab, that way you don't need mail: 2&amp;gt;&amp;amp;1&lt;/P&gt;&lt;P&gt;Also add -x as I mentioned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;date &amp;gt;&amp;gt; /usw/app/oracle/admin/CRMISEF1/statspack/sh.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No need to redirect this if the cron output is also going there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 16:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5828109#M482081</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-10-09T16:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5828987#M482088</link>
      <description>&lt;P&gt;/tmp is 70%&lt;/P&gt;&lt;P&gt;/var is 74%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Log from cron after changing the path:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp; CMD: /usw/app/oracle/admin/CRMISEF1/statspack/test.sh 2&amp;gt;&amp;amp;1&lt;BR /&gt;&amp;gt;&amp;nbsp; oracle 29430 c Wed Oct 10 12:08:00 METDST 2012&lt;BR /&gt;&amp;lt;&amp;nbsp; oracle 29430 c Wed Oct 10 12:08:00 METDST 2012 ts=9&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I didn't change /bin/sh to /bin/sh -x but I doubt it would do anything since the script is clearly not even loaded&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 11:50:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5828987#M482088</guid>
      <dc:creator>petrbena</dc:creator>
      <dc:date>2012-10-10T11:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5829077#M482090</link>
      <description>&lt;P&gt;Hi petrbena,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there emails for the cronjobs of your other users?&lt;/P&gt;&lt;P&gt;What shells are listed in /etc/shells?&lt;/P&gt;&lt;P&gt;Have you tryed to only enter a command in the crontab instead of a script? (46 14 * * * date &amp;gt; /tmp/foo )&lt;/P&gt;&lt;P&gt;How did you execute the script from the CLI and as which user?&lt;/P&gt;&lt;P&gt;Do the environment variables (exp. $PATH) of user oracle look fine?&lt;/P&gt;&lt;P&gt;What are the ownership and permissions of your scriptfile?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;Ralf&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 12:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5829077#M482090</guid>
      <dc:creator>Ralf Seefeldt</dc:creator>
      <dc:date>2012-10-10T12:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5829207#M482091</link>
      <description>&lt;P&gt;Hi, thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result of date is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp; CMD: date &amp;gt;&amp;gt; /usw/app/oracle/admin/CRMISEF1/statspack/sh.log&lt;BR /&gt;&amp;gt;&amp;nbsp; oracle 8516 c Wed Oct 10 16:48:00 METDST 2012&lt;BR /&gt;&amp;lt;&amp;nbsp; oracle 8516 c Wed Oct 10 16:48:01 METDST 2012 ts=9&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;the command wasn't executed as expected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The path is:&lt;/P&gt;&lt;P&gt;PATH=/usr/bin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/mx/bin:/opt/resmon/bin:/opt/perf/bin:/opt/prm/bin:/opt/scr/bin://opt/perl/bin:/opt/ignite/bin:/opt/graphics/common/bin:/usr/sbin/diag/contrib:/opt/OV/bin/OpC:/opt/langtools/bin:/opt/imake/bin:/sbin/fs/vxfs3.5/bin:/usr/symcli/bin:/opt/ssh/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/gwlm/bin:/usr/local/bin:/opt/networker/bin:/opt/sfm/bin:/opt/CA/eTrustAccessControl/bin::/opt/CA/eTrustAccessControl/bin::/usw/app/oracle/product/8.1.7_64bit/bin:/usr/bin:/etc:/usr/ccs/bin:/usr/local/bin:/usr/sbin:/sbin:bin:.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;there is no /etc/shells on that system&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I executed the command using sh shell in terminal (over ssh), I just executed it from its directory (./test.sh) - that worked&lt;/P&gt;&lt;P&gt;but it doesn't work from cron&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the permissions are 755&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 14:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5829207#M482091</guid>
      <dc:creator>petrbena</dc:creator>
      <dc:date>2012-10-10T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5829211#M482092</link>
      <description>the user I used to execute was oracle, and regarding emails, I don't think there are any email for any users on that box. It seems that mails just don't work</description>
      <pubDate>Wed, 10 Oct 2012 14:55:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5829211#M482092</guid>
      <dc:creator>petrbena</dc:creator>
      <dc:date>2012-10-10T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5829379#M482093</link>
      <description>&lt;P&gt;&amp;gt;I didn't change /bin/sh to /bin/sh -x but I doubt it would do anything since the script is clearly not even loaded&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script should be loaded and the -x processed.&amp;nbsp; I suspect it is dying in your .profile processing.&amp;nbsp; That -x may give you a clue.&amp;nbsp; Provided you redirect stderr to a file so we can ignore your mail issue.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 17:10:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5829379#M482093</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-10-10T17:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5834889#M482133</link>
      <description>&lt;P&gt;I inserted -x option - to #!/bin/sh -x the cron log is still same:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp; CMD: /usw/app/oracle/admin/CRMISEF1/statspack/test.sh 2&amp;gt;&amp;amp;1&lt;BR /&gt;&amp;gt;&amp;nbsp; oracle 29277 c Tue Oct 16 10:04:00 METDST 2012&lt;BR /&gt;&amp;lt;&amp;nbsp; oracle 29277 c Tue Oct 16 10:04:00 METDST 2012 ts=9&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;keep in mind that even if I use simple date command, it fail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2012 08:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5834889#M482133</guid>
      <dc:creator>petrbena</dc:creator>
      <dc:date>2012-10-16T08:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5835991#M482148</link>
      <description>&lt;P&gt;&amp;gt;cron log is still same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, since your mail isn't working.&amp;nbsp; You need to put back the redirection of the output:&lt;/P&gt;&lt;P&gt;/usw/app/oracle/admin/CRMISEF1/statspack/test.sh &amp;gt;&amp;gt; /usw/app/oracle/admin/CRMISEF1/statspack/sh.log 2&amp;gt;&amp;amp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then look into sh.log.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 05:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/5835991#M482148</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-10-17T05:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: crontab for certain user doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/6857999#M489434</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got to this post having same issues. First I did not realize what happend but rethiking my steps I found my cause.&lt;/P&gt;&lt;P&gt;I have set the cron for a user on certain of numbers of servers. To avoid login each server, I just created a script to do that for me on all server. The idea was to insert the cronjob onto /var/spool/crontabs/$user. That user had no cronjob setup before so this was first time the file was created.&lt;/P&gt;&lt;P&gt;From here the owner and permisions of the crontab were worg. &amp;nbsp;The file was 644 and the user was root and the group was main group of the root user (using sudo for inserting the conjob into the file)&lt;/P&gt;&lt;P&gt;Soon I have change the permisions to 400 and owner root with user's group (and ofc user part of cron.allow) the cron for the user started to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if &amp;nbsp;this is going to help you, but I thought is worth to mention it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 10:05:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-for-certain-user-doesn-t-work/m-p/6857999#M489434</guid>
      <dc:creator>cradules</dc:creator>
      <dc:date>2016-05-10T10:05:01Z</dc:date>
    </item>
  </channel>
</rss>

