<?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 crontab with csh and sh scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546913#M839447</link>
    <description>Hi all&lt;BR /&gt;I submit a job in crontab as user A and get a nice mail when the script has finished successfully or when it aborts. Submitting a job as user B, I do not get a mail. How come? I don't use any redirection in the script or the crontab entry (such as &amp;gt;/dev/null 2&amp;gt;&amp;amp;1).&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Erwin&lt;BR /&gt;</description>
    <pubDate>Wed, 18 May 2005 04:49:20 GMT</pubDate>
    <dc:creator>Erwin Inauen</dc:creator>
    <dc:date>2005-05-18T04:49:20Z</dc:date>
    <item>
      <title>crontab with csh and sh scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546913#M839447</link>
      <description>Hi all&lt;BR /&gt;I submit a job in crontab as user A and get a nice mail when the script has finished successfully or when it aborts. Submitting a job as user B, I do not get a mail. How come? I don't use any redirection in the script or the crontab entry (such as &amp;gt;/dev/null 2&amp;gt;&amp;amp;1).&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Erwin&lt;BR /&gt;</description>
      <pubDate>Wed, 18 May 2005 04:49:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546913#M839447</guid>
      <dc:creator>Erwin Inauen</dc:creator>
      <dc:date>2005-05-18T04:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: crontab with csh and sh scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546914#M839448</link>
      <description>Is user B allowed to run cron jobs?  (are they listed in /var/adm/cron/cron.allow)&lt;BR /&gt;&lt;BR /&gt;Can user B actually receive emails?&lt;BR /&gt;&lt;BR /&gt;# echo test | mail userA&lt;BR /&gt;# echo test | mail userB&lt;BR /&gt;&lt;BR /&gt;Can you see evidence the job ran in the cron log /var/adm/cron/log&lt;BR /&gt;&lt;BR /&gt;Can you see any evidence of an attempt to email in /var/adm/syslog/mail.log?</description>
      <pubDate>Wed, 18 May 2005 04:53:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546914#M839448</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2005-05-18T04:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: crontab with csh and sh scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546915#M839449</link>
      <description>Try to use it and redirect all the output (stdout/stderr) to some log file and check if there are error messages.&lt;BR /&gt;&lt;BR /&gt;Probably some permissions issue and under user B script fails to run.&lt;BR /&gt;&lt;BR /&gt;Alex.</description>
      <pubDate>Wed, 18 May 2005 04:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546915#M839449</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-05-18T04:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: crontab with csh and sh scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546916#M839450</link>
      <description>Before doing cron schedule, do it manually.&lt;BR /&gt;&lt;BR /&gt;echo "hai erwin from $USER @ $(hostname)" | mail userb&lt;BR /&gt;&lt;BR /&gt;It is good thing to redirect jobs log into /dev/null or some log file.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Wed, 18 May 2005 05:04:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546916#M839450</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-05-18T05:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: crontab with csh and sh scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546917#M839451</link>
      <description>Does USERB have a .forward file in their home directory?&lt;BR /&gt;&lt;BR /&gt;Can you post the mail command you are issuing (&amp;amp; the crontab entry)?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;</description>
      <pubDate>Wed, 18 May 2005 06:06:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546917#M839451</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-05-18T06:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: crontab with csh and sh scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546918#M839452</link>
      <description>Thanks for your various replies. I've run the job by hand and it work well. Also, user B has an entry in at.allow and cron.allow files. &lt;BR /&gt;Last but not least, this is the entry in the cron log:&lt;BR /&gt;&amp;gt; CMD:/pp11/sybase/dba/permissions/permsfile.sh&lt;BR /&gt;&amp;gt; sybpp 9029 c Wed May 18 09:35:00 METDST 2005&lt;BR /&gt;&amp;lt; sybpp 9029 c Wed May 18 09:35:01 METDST 2005 rc=127&lt;BR /&gt;The script is definitely being executed. Our Sysadmin assures that user B can receive mail.&lt;BR /&gt;&lt;BR /&gt;Rgs,&lt;BR /&gt;Erwin</description>
      <pubDate>Wed, 18 May 2005 06:08:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546918#M839452</guid>
      <dc:creator>Erwin Inauen</dc:creator>
      <dc:date>2005-05-18T06:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: crontab with csh and sh scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546919#M839453</link>
      <description>Hi all&lt;BR /&gt;I just found the problem: user B is an alias to, say user C; user C receives the messages, but not user B. &lt;BR /&gt;Thanks for your help again, maybe I'll have more followup questions later on to cron that I'll post in a separate thread.&lt;BR /&gt;&lt;BR /&gt;Rgs,&lt;BR /&gt;Erwin</description>
      <pubDate>Wed, 18 May 2005 06:13:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546919#M839453</guid>
      <dc:creator>Erwin Inauen</dc:creator>
      <dc:date>2005-05-18T06:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: crontab with csh and sh scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546920#M839454</link>
      <description>check whether MAILTO variable is given in the crontab. define this variable to the email id where you want outputs to be sent to</description>
      <pubDate>Wed, 18 May 2005 07:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-with-csh-and-sh-scripts/m-p/3546920#M839454</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-18T07:31:29Z</dc:date>
    </item>
  </channel>
</rss>

