<?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: command mailx, adding hostname as subject in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051537#M96400</link>
    <description>Use "mailx -s".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Wed, 06 Jun 2007 10:40:20 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2007-06-06T10:40:20Z</dc:date>
    <item>
      <title>command mailx, adding hostname as subject</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051535#M96398</link>
      <description>I have a basic script that I'd like to enhance by making sure the hostname gets added to the subject line of the email.  Any suggestions?&lt;BR /&gt;The script I'm using:&lt;BR /&gt;ioscan -fnC fc &amp;gt; /tmp/pgb &lt;BR /&gt;ioscan -fnC lan &amp;gt;&amp;gt; /tmp/pgb &lt;BR /&gt;model &amp;gt;&amp;gt; /tmp/pgb&lt;BR /&gt;hostname &amp;gt;&amp;gt; /tmp/pgb&lt;BR /&gt;mailx me@mycompany.com &amp;lt; /tmp/pgb&lt;BR /&gt;rm -i /tmp/pgb&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jun 2007 10:36:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051535#M96398</guid>
      <dc:creator>GB Tek</dc:creator>
      <dc:date>2007-06-06T10:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: command mailx, adding hostname as subject</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051536#M96399</link>
      <description>Have you looked into the '-s' option to mailx?&lt;BR /&gt;&lt;BR /&gt;mailx -s "$(hostname) output" me@mycompany.com &amp;lt; /tmp/pgb&lt;BR /&gt;&lt;BR /&gt;The use of $(hostname) will ensure portability if you use this script on more than one host.  The $(hostname) executes the hostname command puts the output in its place.</description>
      <pubDate>Wed, 06 Jun 2007 10:40:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051536#M96399</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-06-06T10:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: command mailx, adding hostname as subject</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051537#M96400</link>
      <description>Use "mailx -s".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 06 Jun 2007 10:40:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051537#M96400</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-06-06T10:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: command mailx, adding hostname as subject</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051538#M96401</link>
      <description>ioscan -fnC fc &amp;gt; /tmp/pgb &lt;BR /&gt;ioscan -fnC lan &amp;gt;&amp;gt; /tmp/pgb &lt;BR /&gt;model &amp;gt;&amp;gt; /tmp/pgb&lt;BR /&gt;hostname &amp;gt;&amp;gt; /tmp/pgb&lt;BR /&gt;HOST=`hostname`&lt;BR /&gt;mailx -s ${HOST} me@mycompany.com &amp;lt; /tmp/pgb&lt;BR /&gt;rm -i /tmp/pgb</description>
      <pubDate>Wed, 06 Jun 2007 10:47:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051538#M96401</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2007-06-06T10:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: command mailx, adding hostname as subject</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051539#M96402</link>
      <description>Thanks John.  That was the exact thing that made it work.  Kudos!</description>
      <pubDate>Wed, 06 Jun 2007 11:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051539#M96402</guid>
      <dc:creator>GB Tek</dc:creator>
      <dc:date>2007-06-06T11:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: command mailx, adding hostname as subject</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051540#M96403</link>
      <description>thx</description>
      <pubDate>Wed, 06 Jun 2007 11:03:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-mailx-adding-hostname-as-subject/m-p/5051540#M96403</guid>
      <dc:creator>GB Tek</dc:creator>
      <dc:date>2007-06-06T11:03:24Z</dc:date>
    </item>
  </channel>
</rss>

