<?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 job completion emails in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569778#M30376</link>
    <description>Robin is correct.  When a cron job fails or produces output, an email is sent to root.  Redirect your strout and stderr.&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
    <pubDate>Fri, 24 Aug 2001 11:42:27 GMT</pubDate>
    <dc:creator>Joseph C. Denman</dc:creator>
    <dc:date>2001-08-24T11:42:27Z</dc:date>
    <item>
      <title>cron job completion emails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569776#M30374</link>
      <description>I'm getting spammed upon my cron jobs completion.  Is there anyway not to have a cron job upon completion NOT email root?&lt;BR /&gt;&lt;BR /&gt;..Joe</description>
      <pubDate>Fri, 24 Aug 2001 11:15:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569776#M30374</guid>
      <dc:creator>Joe Profaizer</dc:creator>
      <dc:date>2001-08-24T11:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: cron job completion emails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569777#M30375</link>
      <description>Hi Joe,&lt;BR /&gt;&lt;BR /&gt;If the cron job has produced no output, nothing will be mailed, so redirect stdout/stderr to /dev/null, e.g.:&lt;BR /&gt;&lt;BR /&gt;0 1 * * * jobname &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Fri, 24 Aug 2001 11:27:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569777#M30375</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-08-24T11:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: cron job completion emails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569778#M30376</link>
      <description>Robin is correct.  When a cron job fails or produces output, an email is sent to root.  Redirect your strout and stderr.&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Fri, 24 Aug 2001 11:42:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569778#M30376</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-08-24T11:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: cron job completion emails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569779#M30377</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;cron will send all output (stdout &amp;amp; stderr) to the mailbox of the cron user.  You will have to redirect all output yourself if don't want this to fill up your mailbox, as already mentioned.&lt;BR /&gt;1 1 * * * job &amp;gt; /dev/null 2&amp;gt;&amp;amp;1   is however not always a good idea, you might miss error messages which you will not be able to review ever.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Fri, 24 Aug 2001 12:00:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569779#M30377</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-08-24T12:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: cron job completion emails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569780#M30378</link>
      <description>Hi Joe,&lt;BR /&gt;&lt;BR /&gt;I confirm, with crontab jobs, all standard output and standard error will be sent to the user who had plan the cron job ( because there is no related attached tty to that script ).&lt;BR /&gt;&lt;BR /&gt;If you want to remove all these output ( Standard and error ) you should redirect them to /dev/null.&lt;BR /&gt;&lt;BR /&gt;But attention, sometimes these information are really important to debug some abnormal situation.&lt;BR /&gt;&lt;BR /&gt;If you know about standard output and you assume to redirect to /dev/null, I would PREFER leaving standard error go to the mail so that in case of troubles you will be at least notified for that.&lt;BR /&gt;&lt;BR /&gt;Examples :&lt;BR /&gt;1. Redirection of both standard output and standard error :&lt;BR /&gt;&lt;BR /&gt;* * * * * /users/.../script1.sh &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;2. Redirection of only standard output :&lt;BR /&gt;&lt;BR /&gt;* * * * * /users/.../script1.sh &amp;gt; /dev/null &lt;BR /&gt;&lt;BR /&gt;3. Redirection of only standard error:&lt;BR /&gt;&lt;BR /&gt;* * * * * /users/.../script1.sh 2&amp;gt; /dev/null &lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Magdi&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2001 13:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-completion-emails/m-p/2569780#M30378</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-08-24T13:07:08Z</dc:date>
    </item>
  </channel>
</rss>

