<?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: at command stop mail in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693429#M56008</link>
    <description>Dave,&lt;BR /&gt;Looks like a typo.&lt;BR /&gt;You should be doing this:&lt;BR /&gt;at -f file_name now 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null &lt;BR /&gt;not this:&lt;BR /&gt;at -f file_name now &amp;gt;2&amp;amp;1 &amp;gt;/dev/null &lt;BR /&gt;&lt;BR /&gt;Better still, I prefer to use:&lt;BR /&gt;at -f file_name now 1&amp;gt;/dev/null 2&amp;gt;/dev/null&lt;BR /&gt;No ambiguity, no confusion.</description>
    <pubDate>Fri, 29 Mar 2002 02:24:55 GMT</pubDate>
    <dc:creator>Deepak Extross</dc:creator>
    <dc:date>2002-03-29T02:24:55Z</dc:date>
    <item>
      <title>at command stop mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693427#M56006</link>
      <description>Sorry people, I have tried suggestions from -&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf06b7e990647d4118fee0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf06b7e990647d4118fee0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and I still get mail from root.&lt;BR /&gt;Command -&lt;BR /&gt;at -f file_name now &amp;gt;2&amp;amp;1 &amp;gt;/dev/null&lt;BR /&gt;The command is executed from with a non root user's script.&lt;BR /&gt;I have no need for the mail since I capture errors else where.&lt;BR /&gt;I guess I need another set of eyes because even directing the output to a file results in an email sent.&lt;BR /&gt;&lt;BR /&gt;Thanks for any input.&lt;BR /&gt;dl</description>
      <pubDate>Fri, 29 Mar 2002 02:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693427#M56006</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2002-03-29T02:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: at command stop mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693428#M56007</link>
      <description>Tried this&lt;BR /&gt; &amp;gt;/dev/null &amp;gt;2&amp;amp;1</description>
      <pubDate>Fri, 29 Mar 2002 02:14:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693428#M56007</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2002-03-29T02:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: at command stop mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693429#M56008</link>
      <description>Dave,&lt;BR /&gt;Looks like a typo.&lt;BR /&gt;You should be doing this:&lt;BR /&gt;at -f file_name now 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null &lt;BR /&gt;not this:&lt;BR /&gt;at -f file_name now &amp;gt;2&amp;amp;1 &amp;gt;/dev/null &lt;BR /&gt;&lt;BR /&gt;Better still, I prefer to use:&lt;BR /&gt;at -f file_name now 1&amp;gt;/dev/null 2&amp;gt;/dev/null&lt;BR /&gt;No ambiguity, no confusion.</description>
      <pubDate>Fri, 29 Mar 2002 02:24:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693429#M56008</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-03-29T02:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: at command stop mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693430#M56009</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;I'm not at a system to try this now but let's assume &amp;gt;2&amp;amp;1 was simply a typo you made when posting your question.&lt;BR /&gt;&lt;BR /&gt;There's a difference between the following two command lines:&lt;BR /&gt;command &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;command 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;The first command line redirects stdout to /dev/null then redirects stderr to where ever stdout is going (which was just set to /dev/null).  So stdout and stderr get sent to /dev/null.&lt;BR /&gt;&lt;BR /&gt;The second command line redirects stderr to where ever stdout is going at the time (by default the at job sends stdout to mail) then redirects stdout to /dev/null.  Only stdout is redirected to /dev/null.  Stderr was not affected by the redirect of stdout.&lt;BR /&gt;&lt;BR /&gt;"man sh-posix" has more info I believe).&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Fri, 29 Mar 2002 02:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693430#M56009</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-03-29T02:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: at command stop mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693431#M56010</link>
      <description>Darrel's right - I verified it with a small test.&lt;BR /&gt;&lt;BR /&gt;For this reason, I'm a strong supporter of the syntax&lt;BR /&gt;&lt;COMMAND&gt; 1&amp;gt;/dev/null 2&amp;gt;/dev/null&lt;/COMMAND&gt;</description>
      <pubDate>Fri, 29 Mar 2002 03:22:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693431#M56010</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-03-29T03:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: at command stop mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693432#M56011</link>
      <description>Thanks to all.&lt;BR /&gt;Each scenario appears to work.&lt;BR /&gt;Yes I did send a typo, but I tried so many combinations, I no longer could see the forest.&lt;BR /&gt;Part of my problem was the user id I was using to test.&lt;BR /&gt;I have set nearly all my users&lt;BR /&gt;in a mail db to redirect the mail to Outlook Express. This appeared to continue to send the mail regardless of the suggested method of executing the redirection.&lt;BR /&gt;The user that will need to execute this command is not in that db and no mail or mail error seems to appear for the user or in root.&lt;BR /&gt;In any event, thanks to all that replied to my frustration.&lt;BR /&gt;dl</description>
      <pubDate>Fri, 29 Mar 2002 16:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-command-stop-mail/m-p/2693432#M56011</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2002-03-29T16:53:55Z</dc:date>
    </item>
  </channel>
</rss>

