<?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 mail after run crontab job in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199201#M32579</link>
    <description>I found that when the system run crontab job , it will send a mail to system , for example , if the crontab job is run by root , then a mail will be sent to root@my_domain , can advise if I want to stop to send the mail , what can i do ? thx</description>
    <pubDate>Fri, 16 May 2008 07:55:39 GMT</pubDate>
    <dc:creator>haeman</dc:creator>
    <dc:date>2008-05-16T07:55:39Z</dc:date>
    <item>
      <title>mail after run crontab job</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199201#M32579</link>
      <description>I found that when the system run crontab job , it will send a mail to system , for example , if the crontab job is run by root , then a mail will be sent to root@my_domain , can advise if I want to stop to send the mail , what can i do ? thx</description>
      <pubDate>Fri, 16 May 2008 07:55:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199201#M32579</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-05-16T07:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: mail after run crontab job</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199202#M32580</link>
      <description>You have two options.&lt;BR /&gt;&lt;BR /&gt;Redirect STDOUT and STDERR to somewhere in your job, for example:&lt;BR /&gt;&lt;BR /&gt;0 1 * * * /path/to/job.sh &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Or set at the begining of your cron definitions:&lt;BR /&gt;&lt;BR /&gt;MAILTO=""</description>
      <pubDate>Fri, 16 May 2008 10:37:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199202#M32580</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-05-16T10:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: mail after run crontab job</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199203#M32581</link>
      <description>&amp;gt;root@my_domain &lt;BR /&gt;&lt;BR /&gt;You have to remove the root@my_domain  part from the cron line or from the script as above.&lt;BR /&gt;&lt;BR /&gt;Otherwise, please post the exact lines from the script/cron.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Mon, 19 May 2008 07:19:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199203#M32581</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-05-19T07:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: mail after run crontab job</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199204#M32582</link>
      <description>thx replies,&lt;BR /&gt;&lt;BR /&gt;Ivan's method is good , but I have many many line , if use this method , the cron file will become very large , &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hi Rasheed Tamton ,&lt;BR /&gt;&lt;BR /&gt;where is the line that contains the root@my_domain ?</description>
      <pubDate>Tue, 20 May 2008 07:03:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199204#M32582</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-05-20T07:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: mail after run crontab job</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199205#M32583</link>
      <description>&amp;gt;I found that when the system run crontab job , it will send a mail to system , for example , if the crontab job is run by root , then a mail will be sent to root@my_domain , can advise if I want to stop to send the mail , what can i do ? thx &lt;BR /&gt;&lt;BR /&gt;It is from your original post. &lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Tue, 20 May 2008 07:59:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199205#M32583</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-05-20T07:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: mail after run crontab job</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199206#M32584</link>
      <description>As Ivan stated above, put 'MAILTO=""' on the first line of the crontab, that work for 1 or 36565 entries...&lt;BR /&gt;&lt;BR /&gt;--------&lt;BR /&gt;MAILTO=""&lt;BR /&gt;* * * /bin/test.sh&lt;BR /&gt;* * * /bin/blah.sh&lt;BR /&gt;etc&lt;BR /&gt;etc&lt;BR /&gt;--------</description>
      <pubDate>Mon, 02 Jun 2008 06:13:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mail-after-run-crontab-job/m-p/4199206#M32584</guid>
      <dc:creator>Ciro  Iriarte</dc:creator>
      <dc:date>2008-06-02T06:13:26Z</dc:date>
    </item>
  </channel>
</rss>

