<?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: how to script a mail command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-script-a-mail-command/m-p/3147926#M156934</link>
    <description>&lt;BR /&gt;mailx -s "URGENT WARNING" maciei@mydomain.com &amp;lt; /var/adm/syslog/syslog.log &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;:-) John.</description>
    <pubDate>Thu, 18 Dec 2003 05:05:01 GMT</pubDate>
    <dc:creator>John Carr_2</dc:creator>
    <dc:date>2003-12-18T05:05:01Z</dc:date>
    <item>
      <title>how to script a mail command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-script-a-mail-command/m-p/3147923#M156931</link>
      <description>hi all,&lt;BR /&gt;got HP workstation an several scripts running. one of them is responsible for creating daily archives. now: i would like it to warn me via e-mail in case one of the archived files is corrupted (no matter bout the verification procedure). &lt;BR /&gt;the question is: how to include a "mail" command within a script, so that a short communicate is generated and sent to an address given?&lt;BR /&gt;thanks in advance.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2003 04:44:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-script-a-mail-command/m-p/3147923#M156931</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2003-12-18T04:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to script a mail command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-script-a-mail-command/m-p/3147924#M156932</link>
      <description>mailx -s "Here is the subject" me@mydomain.no &amp;lt;&amp;lt; EOF&lt;BR /&gt;Here is the&lt;BR /&gt;text of the mail&lt;BR /&gt; &lt;BR /&gt;It isn't too useful though&lt;BR /&gt;EOF</description>
      <pubDate>Thu, 18 Dec 2003 04:49:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-script-a-mail-command/m-p/3147924#M156932</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-18T04:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to script a mail command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-script-a-mail-command/m-p/3147925#M156933</link>
      <description>Hi,&lt;BR /&gt;If its shell scripts, then after the command you can verify the return code which is "$?" check if its not "0" that means the command did not complete successfully and you can then write your action like mailx or send an snmp trap.</description>
      <pubDate>Thu, 18 Dec 2003 04:52:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-script-a-mail-command/m-p/3147925#M156933</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-12-18T04:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to script a mail command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-script-a-mail-command/m-p/3147926#M156934</link>
      <description>&lt;BR /&gt;mailx -s "URGENT WARNING" maciei@mydomain.com &amp;lt; /var/adm/syslog/syslog.log &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;:-) John.</description>
      <pubDate>Thu, 18 Dec 2003 05:05:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-script-a-mail-command/m-p/3147926#M156934</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2003-12-18T05:05:01Z</dc:date>
    </item>
  </channel>
</rss>

