<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Disable The Mail Alert By Crontab Command</title> <atom:link href="http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Mike</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-67772</link> <dc:creator>Mike</dc:creator> <pubDate>Tue, 07 Feb 2012 00:43:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-67772</guid> <description>Thanks for the tip, works great to disable cron emails.</description> <content:encoded><![CDATA[<p>Thanks for the tip, works great to disable cron emails.</p> ]]></content:encoded> </item> <item><title>By: Howard</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-67680</link> <dc:creator>Howard</dc:creator> <pubDate>Tue, 31 Jan 2012 14:39:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-67680</guid> <description>Will this work for the at command as well?
I&#039;m trying to setup a series of commands that check for a condition and then reschedule themselves until it&#039;s not true.  The problem is every run sends an email to root, I need to stop that.</description> <content:encoded><![CDATA[<p>Will this work for the at command as well?<br
/> I&#8217;m trying to setup a series of commands that check for a condition and then reschedule themselves until it&#8217;s not true.  The problem is every run sends an email to root, I need to stop that.</p> ]]></content:encoded> </item> <item><title>By: kthx</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-61249</link> <dc:creator>kthx</dc:creator> <pubDate>Wed, 03 Aug 2011 04:02:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-61249</guid> <description>MAILTO=&quot;&quot; is the best solution :P
Thanks for the tip ;)</description> <content:encoded><![CDATA[<p>MAILTO=&#8221;" is the best solution :P</p><p>Thanks for the tip ;)</p> ]]></content:encoded> </item> <item><title>By: kthx</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-61248</link> <dc:creator>kthx</dc:creator> <pubDate>Wed, 03 Aug 2011 04:01:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-61248</guid> <description>Hahaha just stop there for a while lol....</description> <content:encoded><![CDATA[<p>Hahaha just stop there for a while lol&#8230;.</p> ]]></content:encoded> </item> <item><title>By: Rosario</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-57309</link> <dc:creator>Rosario</dc:creator> <pubDate>Fri, 15 Apr 2011 18:11:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-57309</guid> <description>@IIker, Have a look at your
/etc/postfix/sender_canonical
/etc/aliases
and reload with
/etc/postfix/postmap sender_canonical
/etc/postalias aliases
with aliases you can send mails to root and other addresses without putting it in the MAILTO in crontab. That&#039;s how I was told to do it and it works on my servers.</description> <content:encoded><![CDATA[<p>@IIker, Have a look at your</p><p>/etc/postfix/sender_canonical<br
/> /etc/aliases</p><p>and reload with</p><p>/etc/postfix/postmap sender_canonical</p><p>/etc/postalias aliases</p><p>with aliases you can send mails to root and other addresses without putting it in the MAILTO in crontab. That&#8217;s how I was told to do it and it works on my servers.</p> ]]></content:encoded> </item> <item><title>By: Ilker</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-56283</link> <dc:creator>Ilker</dc:creator> <pubDate>Sat, 12 Mar 2011 06:46:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-56283</guid> <description>Hi,
I wrote to the top of my crontab file
MAILTO=&quot;myadress@gmail.com&quot;
and the outputs of commands are not coming to my gmail adress. Why?
Thank you.</description> <content:encoded><![CDATA[<p>Hi,<br
/> I wrote to the top of my crontab file<br
/> MAILTO=&#8221;myadress@gmail.com&#8221;</p><p>and the outputs of commands are not coming to my gmail adress. Why?</p><p>Thank you.</p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-54629</link> <dc:creator>Chris</dc:creator> <pubDate>Wed, 05 Jan 2011 17:52:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-54629</guid> <description>Hi Vivek, great tip, thank you!
The correct way to restart crond in HP-UX is:
# /sbin/init.d/cron stop
# /sbin/init.d/cron start
Best regards.</description> <content:encoded><![CDATA[<p>Hi Vivek, great tip, thank you!</p><p>The correct way to restart crond in HP-UX is:</p><p># /sbin/init.d/cron stop<br
/> # /sbin/init.d/cron start</p><p>Best regards.</p> ]]></content:encoded> </item> <item><title>By: Fredrik</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-48621</link> <dc:creator>Fredrik</dc:creator> <pubDate>Tue, 03 Aug 2010 10:24:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-48621</guid> <description>@Frank
Sure, use the MAILTO=&quot;&quot; trick, just don&#039;t put &quot;&quot;
MAILTO=&quot;frank@example.com&quot;</description> <content:encoded><![CDATA[<p>@Frank</p><p>Sure, use the MAILTO=&#8221;" trick, just don&#8217;t put &#8220;&#8221;</p><p>MAILTO=&#8221;frank@example.com&#8221;</p> ]]></content:encoded> </item> <item><title>By: Frank</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-48069</link> <dc:creator>Frank</dc:creator> <pubDate>Sat, 26 Jun 2010 08:22:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-48069</guid> <description>I would like to know where I can adjust the email address of cron&#039;s mail? Apparently I set an email address somewhere when I installed the server, but I&#039;m unable to find where I can adjust that email address. I&#039;m running debian lenny. Can someone help me here?</description> <content:encoded><![CDATA[<p>I would like to know where I can adjust the email address of cron&#8217;s mail? Apparently I set an email address somewhere when I installed the server, but I&#8217;m unable to find where I can adjust that email address. I&#8217;m running debian lenny. Can someone help me here?</p> ]]></content:encoded> </item> <item><title>By: Bud</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-47798</link> <dc:creator>Bud</dc:creator> <pubDate>Sun, 13 Jun 2010 22:57:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-47798</guid> <description>Thank you OP and Anand Sharma</description> <content:encoded><![CDATA[<p>Thank you OP and Anand Sharma</p> ]]></content:encoded> </item> <item><title>By: Anoni Mouse</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-47256</link> <dc:creator>Anoni Mouse</dc:creator> <pubDate>Sun, 09 May 2010 13:35:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-47256</guid> <description>It is not required to restart cron to effect changes to your crontab.  Each time cron wakes up, it checks to see if the crontab has changed, and if so cron reparses it.</description> <content:encoded><![CDATA[<p>It is not required to restart cron to effect changes to your crontab.  Each time cron wakes up, it checks to see if the crontab has changed, and if so cron reparses it.</p> ]]></content:encoded> </item> <item><title>By: Petr Topiarz alias kolaloka</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-46385</link> <dc:creator>Petr Topiarz alias kolaloka</dc:creator> <pubDate>Fri, 12 Mar 2010 14:43:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-46385</guid> <description>Thank you Edward,
your &quot;&gt; /dev/null&quot; was the only option that did the job for me. I run and adminster 3 servers with OpenBSD 4.3-5 and the cron did not like any other stuff but what you wrote. Thanks a lot. You saved me a lot of work.
Peter</description> <content:encoded><![CDATA[<p>Thank you Edward,<br
/> your &#8220;&gt; /dev/null&#8221; was the only option that did the job for me. I run and adminster 3 servers with OpenBSD 4.3-5 and the cron did not like any other stuff but what you wrote. Thanks a lot. You saved me a lot of work.<br
/> Peter</p> ]]></content:encoded> </item> <item><title>By: edward baddouh</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-42990</link> <dc:creator>edward baddouh</dc:creator> <pubDate>Mon, 10 Aug 2009 13:27:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-42990</guid> <description>It&#039;ll be better if you redirect only the &lt;b&gt;std output&lt;/b&gt; to &lt;b&gt;/dev/null&lt;/b&gt; instead redirecting both (stdout &amp; stderr). This way only commands with failure exit status will be delivered.
&lt;code&gt;
* *  *  * /path/to/script.sh &gt; /dev/null
&lt;/code&gt;
regards,</description> <content:encoded><![CDATA[<p>It&#8217;ll be better if you redirect only the <b>std output</b> to <b>/dev/null</b> instead redirecting both (stdout &amp; stderr). This way only commands with failure exit status will be delivered.</p><p><code><br
/> * *  *  * /path/to/script.sh &gt; /dev/null<br
/> </code></p><p>regards,</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-42192</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Mon, 22 Jun 2009 21:38:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-42192</guid> <description>@ slowpoison
Thanks for the heads-up.</description> <content:encoded><![CDATA[<p>@ slowpoison</p><p>Thanks for the heads-up.</p> ]]></content:encoded> </item> <item><title>By: slowpoison</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-42191</link> <dc:creator>slowpoison</dc:creator> <pubDate>Mon, 22 Jun 2009 20:58:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-42191</guid> <description>Is it MAILTO or EMAILTO?
Only MAILTO worked for me. I think EMAILTO is wrong.</description> <content:encoded><![CDATA[<p>Is it MAILTO or EMAILTO?<br
/> Only MAILTO worked for me. I think EMAILTO is wrong.</p> ]]></content:encoded> </item> <item><title>By: Sebastián Perrone</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-39424</link> <dc:creator>Sebastián Perrone</dc:creator> <pubDate>Wed, 10 Dec 2008 17:32:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-39424</guid> <description>I try MAILTO environment var and work ok. Thanks for help !</description> <content:encoded><![CDATA[<p>I try MAILTO environment var and work ok. Thanks for help !</p> ]]></content:encoded> </item> <item><title>By: Phil</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-38972</link> <dc:creator>Phil</dc:creator> <pubDate>Sun, 12 Oct 2008 12:10:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-38972</guid> <description>If you want the crontab to run daily, weekley, monthly etc.. a good shortcut is to use the variables
@daily, @weekley etc...
It saves you accidently missing out a * and getting thousands of emails by mistake
http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5
for a full list of them</description> <content:encoded><![CDATA[<p>If you want the crontab to run daily, weekley, monthly etc.. a good shortcut is to use the variables</p><p>@daily, @weekley etc&#8230;</p><p>It saves you accidently missing out a * and getting thousands of emails by mistake</p><p><a
href="http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5" rel="nofollow">http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5</a></p><p>for a full list of them</p> ]]></content:encoded> </item> <item><title>By: Matt Balloon</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-37588</link> <dc:creator>Matt Balloon</dc:creator> <pubDate>Fri, 07 Mar 2008 15:23:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-37588</guid> <description>I used your tip for my openads installation, thanks, I think cronjobs are pretty complicated things</description> <content:encoded><![CDATA[<p>I used your tip for my openads installation, thanks, I think cronjobs are pretty complicated things</p> ]]></content:encoded> </item> <item><title>By: Prolific Programmer</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-37386</link> <dc:creator>Prolific Programmer</dc:creator> <pubDate>Fri, 01 Feb 2008 14:09:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-37386</guid> <description>For the csh scripts, at least on every system I have access to, to redirect stderr, you need to put &gt;&amp; /dev/null after the command, not &amp;&gt; as indicated by the note.</description> <content:encoded><![CDATA[<p>For the csh scripts, at least on every system I have access to, to redirect stderr, you need to put &gt;&amp; /dev/null after the command, not &amp;&gt; as indicated by the note.</p> ]]></content:encoded> </item> <item><title>By: Gopal</title><link>http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/#comment-37353</link> <dc:creator>Gopal</dc:creator> <pubDate>Fri, 25 Jan 2008 09:26:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/disable-the-mail-alert-by-crontab-command.php#comment-37353</guid> <description>But if you have so many cron jobs and you want disable mail alert for a few of them, while other jobs needs a mail alert, then &amp;&gt;/dev/null would be the best choice.
Thanks</description> <content:encoded><![CDATA[<p>But if you have so many cron jobs and you want disable mail alert for a few of them, while other jobs needs a mail alert, then &amp;&gt;/dev/null would be the best choice.</p><p>Thanks</p> ]]></content:encoded> </item> </channel> </rss>
