<?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: NO mail from crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491363#M804716</link>
    <description>Hi Fouad,&lt;BR /&gt;&lt;BR /&gt;Here is an abstract of the crontab manual page:&lt;BR /&gt;&lt;BR /&gt;--QUOTE&lt;BR /&gt;WARNINGS&lt;BR /&gt;      Be sure to redirect the standard output and standard error from&lt;BR /&gt;      commands.  If this is not done, any generated standard output or&lt;BR /&gt;      standard error is mailed to the user.&lt;BR /&gt;--ENDQUOTE&lt;BR /&gt;&lt;BR /&gt;You could try redirecting (stdout and stderr) to a file  (as in 'command &amp;gt; /tmp/file 2&amp;gt;&amp;amp;1')&lt;BR /&gt;&lt;BR /&gt;If the file isn't empty after job completion, its content is what should have been emailed without redirection. &lt;BR /&gt;&lt;BR /&gt;Just in case, if you're running HP-UX 11.0, here is a link to the latest Cumulative cron/at/crontab patch&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://ftp.itrc.hp.com/hp-ux_patches/s700_800/11.X/PHCO_21494" target="_blank"&gt;ftp://ftp.itrc.hp.com/hp-ux_patches/s700_800/11.X/PHCO_21494&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
    <pubDate>Fri, 09 Feb 2001 07:07:09 GMT</pubDate>
    <dc:creator>Dan Hetzel</dc:creator>
    <dc:date>2001-02-09T07:07:09Z</dc:date>
    <item>
      <title>NO mail from crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491359#M804712</link>
      <description>Allow me to introduce myself. Fouad from Mauritius&lt;BR /&gt;&lt;BR /&gt;PLease confirm!&lt;BR /&gt;When you submit jobs in crontab you only receive mail if the job was unsuccessful. In case the job was successful you do not receive any mail. &lt;BR /&gt;&lt;BR /&gt;This is my case. Is it normal? &lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Thu, 08 Feb 2001 12:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491359#M804712</guid>
      <dc:creator>Fouad_1</dc:creator>
      <dc:date>2001-02-08T12:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: NO mail from crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491360#M804713</link>
      <description>Hi Fouad,&lt;BR /&gt;&lt;BR /&gt;You'll receive mail after a crotab job has executed in the following cases:&lt;BR /&gt;1. Job was unsuccessful&lt;BR /&gt;2. Job is writing to standard output or standard error without being redirected either to a file or to /dev/null.&lt;BR /&gt;&lt;BR /&gt;Thus, a job like 'echo hello' will have his output (hello) mailed, while a job like 'echo hello &amp;gt;/dev/null 2&amp;gt;&amp;amp;1' will not.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2001 12:34:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491360#M804713</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-02-08T12:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: NO mail from crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491361#M804714</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Don't forget to redirect BOTH stdout and stderr, otherwise you could get mail.&lt;BR /&gt;It's always better to redirect to a file as this will leave you with a trace in case all went wrong.&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2001 12:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491361#M804714</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-02-08T12:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: NO mail from crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491362#M804715</link>
      <description>Thanks (Dan) for the clarification. Now let me explain my problem.&lt;BR /&gt;I have a root crontab file. It contains commands (of course). The command is having some errors and some standard output. So it should mail the root user but in fact it does not. But I can find the output in /var/spool/cron/tmp. I have no redirection to that file in my crontab file.&lt;BR /&gt;I am running HP-UX 11.00 on an N-Class machine. Root do get other mails from other programs.&lt;BR /&gt;Why root is not being mailed in this special case?&lt;BR /&gt;&lt;BR /&gt;Please help and thanks in advance.</description>
      <pubDate>Fri, 09 Feb 2001 06:13:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491362#M804715</guid>
      <dc:creator>Fouad_1</dc:creator>
      <dc:date>2001-02-09T06:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: NO mail from crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491363#M804716</link>
      <description>Hi Fouad,&lt;BR /&gt;&lt;BR /&gt;Here is an abstract of the crontab manual page:&lt;BR /&gt;&lt;BR /&gt;--QUOTE&lt;BR /&gt;WARNINGS&lt;BR /&gt;      Be sure to redirect the standard output and standard error from&lt;BR /&gt;      commands.  If this is not done, any generated standard output or&lt;BR /&gt;      standard error is mailed to the user.&lt;BR /&gt;--ENDQUOTE&lt;BR /&gt;&lt;BR /&gt;You could try redirecting (stdout and stderr) to a file  (as in 'command &amp;gt; /tmp/file 2&amp;gt;&amp;amp;1')&lt;BR /&gt;&lt;BR /&gt;If the file isn't empty after job completion, its content is what should have been emailed without redirection. &lt;BR /&gt;&lt;BR /&gt;Just in case, if you're running HP-UX 11.0, here is a link to the latest Cumulative cron/at/crontab patch&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://ftp.itrc.hp.com/hp-ux_patches/s700_800/11.X/PHCO_21494" target="_blank"&gt;ftp://ftp.itrc.hp.com/hp-ux_patches/s700_800/11.X/PHCO_21494&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Feb 2001 07:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491363#M804716</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-02-09T07:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: NO mail from crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491364#M804717</link>
      <description>Fouad,&lt;BR /&gt;&lt;BR /&gt;Your command program may have written to the /var/spool/cron/tmp directory explicitely, or it does re-directing standard output and standard error internally.  What happens if you run the command under shell without cron? do you see any outputs?&lt;BR /&gt;&lt;BR /&gt;~Philip</description>
      <pubDate>Fri, 09 Feb 2001 07:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491364#M804717</guid>
      <dc:creator>Philip Chan_1</dc:creator>
      <dc:date>2001-02-09T07:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: NO mail from crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491365#M804718</link>
      <description>insert in your command file:&lt;BR /&gt;set -x &lt;BR /&gt;exec &amp;gt;/tmp/trace1 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;now you can see trace of your shell and analyze it.&lt;BR /&gt;&lt;BR /&gt;then remove exec stament. Now all that must be redirected to mail. See also /var/mail dir.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Feb 2001 13:01:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491365#M804718</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-02-09T13:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: NO mail from crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491366#M804719</link>
      <description>Hi all&lt;BR /&gt;Something strange happened. After having done the tests you guys told me. (Adding redirection and so) and returning the crontab file to its original contents, I began receiving mail from cron once again. I do not understand how the problem was solved. The administrators of the system asssured me they did nothing. &lt;BR /&gt;Nevertheless thanks for all your help and your precious time.&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;&lt;BR /&gt;Fouad</description>
      <pubDate>Thu, 15 Feb 2001 06:06:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-mail-from-crontab/m-p/2491366#M804719</guid>
      <dc:creator>Fouad_1</dc:creator>
      <dc:date>2001-02-15T06:06:50Z</dc:date>
    </item>
  </channel>
</rss>

