<?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: Script issue moving from HPUX to Linux for mail in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208185#M51383</link>
    <description>That works perfectly Dennis. Dang, I never looked at that thread until now.</description>
    <pubDate>Thu, 02 Sep 2010 14:11:00 GMT</pubDate>
    <dc:creator>ECUse</dc:creator>
    <dc:date>2010-09-02T14:11:00Z</dc:date>
    <item>
      <title>Script issue moving from HPUX to Linux for mail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208179#M51377</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a script that I am migrating from a HPUX system to a REDHAT 5.3 system. I am trying to insert a file as a text attachment to a message. It works in HPUX, but not in Linux. Here it is....&lt;BR /&gt;&lt;BR /&gt;HPUX:&lt;BR /&gt;mailx -s "test" bob@aol.com &amp;lt;&amp;lt; EOF&lt;BR /&gt;This is my e-mail text message.&lt;BR /&gt;&lt;BR /&gt;~r /home/bob/log/logfile&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Linux:&lt;BR /&gt;mail -s "test" bob@aol.com &amp;lt;&amp;lt; EOF&lt;BR /&gt;This is my e-mail text message.&lt;BR /&gt;&lt;BR /&gt;~r /home/bob/log/logfile&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;The problem is the ~r is seen as text in the e-mail message and not executing the function in the script under linux.&lt;BR /&gt;&lt;BR /&gt;Any ideas.&lt;BR /&gt;&lt;BR /&gt;Thx</description>
      <pubDate>Fri, 06 Nov 2009 19:04:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208179#M51377</guid>
      <dc:creator>ECUse</dc:creator>
      <dc:date>2009-11-06T19:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue moving from HPUX to Linux for mail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208180#M51378</link>
      <description>&lt;!--!*#--&gt;Apparently "mailx" on HP-UX and "mail" on&lt;BR /&gt;your GNU/Linux system are different programs.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Any ideas.&lt;BR /&gt;&lt;BR /&gt;Yes?&lt;BR /&gt;&lt;BR /&gt;If nothing else, instead of expecting "mailx"&lt;BR /&gt;to do all the work, you could use "cat" (or&lt;BR /&gt;something) to combine your message text with&lt;BR /&gt;the contents of that "~r" file, and send the&lt;BR /&gt;result through "mail".</description>
      <pubDate>Fri, 06 Nov 2009 19:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208180#M51378</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-11-06T19:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue moving from HPUX to Linux for mail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208181#M51379</link>
      <description>I have implemented the work around you have suggest. I know the ~r option works in Linux. It's just bugging me that I can't get it to work as it did in HPUX. If I manually type the message and add the ~r filename. It works. Just using the redirect text option it doesn't. I am wondering if there is an escape character to allow it to execute the option instead of reading it as text.</description>
      <pubDate>Fri, 06 Nov 2009 20:03:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208181#M51379</guid>
      <dc:creator>ECUse</dc:creator>
      <dc:date>2009-11-06T20:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue moving from HPUX to Linux for mail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208182#M51380</link>
      <description>mailx and mail are different, and the tilde trick is specific to mailx.&lt;BR /&gt;&lt;BR /&gt;If you don't have /bin/mailx present on your 5.3 system, install the Linux Standard Base RPM ("yum install redhat-lsb") and several things will probably be more in line with scripts you wrote for HP-UX.</description>
      <pubDate>Sat, 07 Nov 2009 02:01:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208182#M51380</guid>
      <dc:creator>Randy Jones_3</dc:creator>
      <dc:date>2009-11-07T02:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue moving from HPUX to Linux for mail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208183#M51381</link>
      <description>Thanks I believe that would would. I will give it a try.</description>
      <pubDate>Tue, 24 Nov 2009 19:01:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208183#M51381</guid>
      <dc:creator>ECUse</dc:creator>
      <dc:date>2009-11-24T19:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue moving from HPUX to Linux for mail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208184#M51382</link>
      <description>If you are using a real shell you should be able to get the here document to read that file:&lt;BR /&gt;mail -s "test" bob@aol.com &amp;lt;&amp;lt; EOF&lt;BR /&gt;This is my e-mail text message.&lt;BR /&gt;&lt;BR /&gt;$(&amp;lt; /home/bob/log/logfile)&lt;BR /&gt;EOF</description>
      <pubDate>Thu, 26 Nov 2009 00:08:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208184#M51382</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-26T00:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue moving from HPUX to Linux for mail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208185#M51383</link>
      <description>That works perfectly Dennis. Dang, I never looked at that thread until now.</description>
      <pubDate>Thu, 02 Sep 2010 14:11:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208185#M51383</guid>
      <dc:creator>ECUse</dc:creator>
      <dc:date>2010-09-02T14:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue moving from HPUX to Linux for mail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208186#M51384</link>
      <description>Dennis provided the information I was looking for.</description>
      <pubDate>Thu, 02 Sep 2010 14:11:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue-moving-from-hpux-to-linux-for-mail/m-p/5208186#M51384</guid>
      <dc:creator>ECUse</dc:creator>
      <dc:date>2010-09-02T14:11:49Z</dc:date>
    </item>
  </channel>
</rss>

