<?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 still sends e-mail in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-still-sends-e-mail/m-p/2569388#M872748</link>
    <description>Hi Don,&lt;BR /&gt;&lt;BR /&gt;Are the emails only for the failed job?&lt;BR /&gt;&lt;BR /&gt;Try adding a "2&amp;gt;&amp;amp;1" at the end of the cron job.&lt;BR /&gt;what this will do is send both the STDOUT and STDERR to the log file&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh</description>
    <pubDate>Thu, 23 Aug 2001 17:22:59 GMT</pubDate>
    <dc:creator>linuxfan</dc:creator>
    <dc:date>2001-08-23T17:22:59Z</dc:date>
    <item>
      <title>cron still sends e-mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-still-sends-e-mail/m-p/2569387#M872747</link>
      <description>I have a number of cron jobs run by user 'oracle' that are used to do the daily maintenance. One in particular is sending output to the 'oracle' e-mail queue even though I have it re-directed to a log file as follows:&lt;BR /&gt;5,20,35,50 * * * * /dba/dba/maestro/compress_arch.sh &amp;gt;&amp;gt; /dba/dba/log/dwprod01/compress_arch.log&lt;BR /&gt;&lt;BR /&gt;Can anyone tell my why this is still sending output to the e-mail and how can I stop it? Since this job runs every 15 minutes it builds up quite a queue of messages which I must delete manually.</description>
      <pubDate>Thu, 23 Aug 2001 17:18:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-still-sends-e-mail/m-p/2569387#M872747</guid>
      <dc:creator>Don Spare</dc:creator>
      <dc:date>2001-08-23T17:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: cron still sends e-mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-still-sends-e-mail/m-p/2569388#M872748</link>
      <description>Hi Don,&lt;BR /&gt;&lt;BR /&gt;Are the emails only for the failed job?&lt;BR /&gt;&lt;BR /&gt;Try adding a "2&amp;gt;&amp;amp;1" at the end of the cron job.&lt;BR /&gt;what this will do is send both the STDOUT and STDERR to the log file&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh</description>
      <pubDate>Thu, 23 Aug 2001 17:22:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-still-sends-e-mail/m-p/2569388#M872748</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-23T17:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: cron still sends e-mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-still-sends-e-mail/m-p/2569389#M872749</link>
      <description>Hi Don,&lt;BR /&gt;Check script compress_arch.sh it might have mailx command running inside the script.&lt;BR /&gt;Or If script prints anything on standard output then cron will sends email automatically. so use 2&amp;gt;&amp;amp;1  at end of your cron line.&lt;BR /&gt;5,20,35,50 * * * * /dba/dba/maestro/compress_arch.sh &amp;gt;&amp;gt; /dba/dba/log/dwprod01/compress_arch.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Sachin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Aug 2001 17:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-still-sends-e-mail/m-p/2569389#M872749</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2001-08-23T17:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: cron still sends e-mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-still-sends-e-mail/m-p/2569390#M872750</link>
      <description>Thanks, Ramesh. I knew it had to be something simple. As I looked through my crontab file I noticed that I had added the output redirect to other jobs to solve this problem.</description>
      <pubDate>Thu, 23 Aug 2001 17:31:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-still-sends-e-mail/m-p/2569390#M872750</guid>
      <dc:creator>Don Spare</dc:creator>
      <dc:date>2001-08-23T17:31:21Z</dc:date>
    </item>
  </channel>
</rss>

