<?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: Redirecting stderr from mailx in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223739#M679279</link>
    <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;It's been a long week! I don't know why I didn't redirect stdout as well in the first place.&lt;BR /&gt;&lt;BR /&gt;As a matter of interest, why didn't my original command work?&lt;BR /&gt;&lt;BR /&gt;Have a good week-end.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Gary&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Feb 2010 16:02:49 GMT</pubDate>
    <dc:creator>Gary Cooper_1</dc:creator>
    <dc:date>2010-02-05T16:02:49Z</dc:date>
    <item>
      <title>Redirecting stderr from mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223737#M679277</link>
      <description>Within my script, I want to log/catch any errors that mailx may generate - in particular when it is supplied with an invalid recipient.&lt;BR /&gt;when I try to just redirect stderr it just seems to ignore it...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ll | mailx -s "Test e-mail" bert 2&amp;gt; mail.stderr&lt;BR /&gt;&amp;gt; bert... User unknown&lt;BR /&gt;&amp;lt;$HOME&amp;gt;/dead.letter... Saved message in &amp;lt;$HOME&amp;gt;/dead.letter&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Where $HOME is the home directory of the user account that I was logged in as.&lt;BR /&gt;&lt;BR /&gt;Any help would be much appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Fri, 05 Feb 2010 15:38:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223737#M679277</guid>
      <dc:creator>Gary Cooper_1</dc:creator>
      <dc:date>2010-02-05T15:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting stderr from mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223738#M679278</link>
      <description>Hi Gary:&lt;BR /&gt;&lt;BR /&gt;# ll | mailx -s "Test e-mail" xxx 1&amp;gt;&amp;gt;/tmp/mylog 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2010 15:56:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223738#M679278</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-05T15:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting stderr from mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223739#M679279</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;It's been a long week! I don't know why I didn't redirect stdout as well in the first place.&lt;BR /&gt;&lt;BR /&gt;As a matter of interest, why didn't my original command work?&lt;BR /&gt;&lt;BR /&gt;Have a good week-end.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Gary&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2010 16:02:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223739#M679279</guid>
      <dc:creator>Gary Cooper_1</dc:creator>
      <dc:date>2010-02-05T16:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting stderr from mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223740#M679280</link>
      <description>Hi (again) Gary:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; As a matter of interest, why didn't my original command work?&lt;BR /&gt;&lt;BR /&gt;The output messages you really wanted to collect are going to STDOUT not STDERR.&lt;BR /&gt;&lt;BR /&gt;I could have suggested you do:&lt;BR /&gt;&lt;BR /&gt;# # ll | mailx -s "Test e-mail" xxx 1&amp;gt;&amp;gt;/tmp/mylog&lt;BR /&gt;&lt;BR /&gt;...and ignored STDERR entirely.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 05 Feb 2010 16:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223740#M679280</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-05T16:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting stderr from mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223741#M679281</link>
      <description>&amp;gt;why didn't my original command work?&lt;BR /&gt;&lt;BR /&gt;Because your assumptions and the programmer's about what goes to stderr were different.&lt;BR /&gt;&lt;BR /&gt;With an interactive program like mailx, perhaps this is blurred.&lt;BR /&gt;&lt;BR /&gt;Sometimes as JRF had, you should just log both.</description>
      <pubDate>Sat, 06 Feb 2010 00:40:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223741#M679281</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-06T00:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting stderr from mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223742#M679282</link>
      <description>Thanks for the assistance James.</description>
      <pubDate>Mon, 08 Feb 2010 08:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-stderr-from-mailx/m-p/5223742#M679282</guid>
      <dc:creator>Gary Cooper_1</dc:creator>
      <dc:date>2010-02-08T08:14:38Z</dc:date>
    </item>
  </channel>
</rss>

