<?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 without email .. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-without-email/m-p/2619597#M38353</link>
    <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;If you want to forward all the mails sent to root to another user you can specify that in the mail alias. Set another mail id for and alias named root. In some of my systems an alias is set where all mail to root are forwarded to my email address. This way all cron messages will be forwarded to that email address.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
    <pubDate>Sun, 25 Nov 2001 09:17:13 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2001-11-25T09:17:13Z</dc:date>
    <item>
      <title>cron without email ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-without-email/m-p/2619595#M38351</link>
      <description>Hey everyone&lt;BR /&gt;             Is there a way to fix a cron job so it does not send an email to root's email? Or is there a way to send it to someone elses email? &lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Sun, 25 Nov 2001 05:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-without-email/m-p/2619595#M38351</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-11-25T05:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: cron without email ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-without-email/m-p/2619596#M38352</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Cron will always automatically mail output for stdout&lt;BR /&gt;and stderr to root unless you specifically state in the&lt;BR /&gt;command that stdout and stderr are redirected elsewhere.&lt;BR /&gt;&lt;BR /&gt;To disable cron from mailing output to root add the following to the end of the&lt;BR /&gt;cron entry:&lt;BR /&gt;&lt;BR /&gt;   &amp;gt; /dev/null       (this redirects std. out to the bit bucket)&lt;BR /&gt;&lt;BR /&gt;   2&amp;gt; /dev/null      (this redirects std. error to the bit bucket)&lt;BR /&gt;&lt;BR /&gt;   &amp;gt; /dev/null 2&amp;gt;&amp;amp;1  (this redirects both std. out and std. error)&lt;BR /&gt;&lt;BR /&gt;Here are a couple of examples:&lt;BR /&gt;&lt;BR /&gt;   0 1 * * * /path/command [options] &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   0 1 * * * /path/command [options] &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Nov 2001 07:13:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-without-email/m-p/2619596#M38352</guid>
      <dc:creator>eran maor</dc:creator>
      <dc:date>2001-11-25T07:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: cron without email ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-without-email/m-p/2619597#M38353</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;If you want to forward all the mails sent to root to another user you can specify that in the mail alias. Set another mail id for and alias named root. In some of my systems an alias is set where all mail to root are forwarded to my email address. This way all cron messages will be forwarded to that email address.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Nov 2001 09:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-without-email/m-p/2619597#M38353</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-11-25T09:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: cron without email ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-without-email/m-p/2619598#M38354</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;I've been trying for 2 days to respond but the Forums Gods were apparently against me!&lt;BR /&gt;&lt;BR /&gt;Anyway, here is what I do to redirect cron job output to a different e-mail address:&lt;BR /&gt;&lt;BR /&gt;00 14 * * 5 /dir/to/cron/script 2&amp;gt;&amp;amp;1 | mailx -s "Output from /dir/to/cron/script" youaddress@mail.com&lt;BR /&gt;&lt;BR /&gt;That redirects standard out to standard error and pipes it all to mailx to mail it to you.  Works pretty well.  The examples Eran gave you work if you don't want any messages.</description>
      <pubDate>Mon, 26 Nov 2001 19:12:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-without-email/m-p/2619598#M38354</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-11-26T19:12:39Z</dc:date>
    </item>
  </channel>
</rss>

