<?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: Empty subject when using mailx. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930770#M809206</link>
    <description>Hi Folks,&lt;BR /&gt;Yes Pat I do have #!/bin/ksh.&lt;BR /&gt;&lt;BR /&gt;Just to mention that my script is working perfectly in the DEV server, the problem occur on another UNIX HP server.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
    <pubDate>Tue, 04 Oct 2005 10:50:18 GMT</pubDate>
    <dc:creator>Adnane_1</dc:creator>
    <dc:date>2005-10-04T10:50:18Z</dc:date>
    <item>
      <title>Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930760#M809194</link>
      <description>Hello Folks,&lt;BR /&gt;I getting an empty email when using the following command in a Korn shell script:&lt;BR /&gt;&lt;BR /&gt;subject="Testing ..."&lt;BR /&gt;echo "Subject =${subject}"&lt;BR /&gt;mailx -s"${subject}" myemail &lt;BR /&gt;Anyone can help on this?&lt;BR /&gt;&lt;BR /&gt;Adnane</description>
      <pubDate>Sun, 02 Oct 2005 17:16:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930760#M809194</guid>
      <dc:creator>Adnane_1</dc:creator>
      <dc:date>2005-10-02T17:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930761#M809195</link>
      <description>Hi Adnane:&lt;BR /&gt;&lt;BR /&gt;By redirecting /dev/null to STDIN you got exactly what you asked: an empty email body.&lt;BR /&gt;&lt;BR /&gt;You could redirect another file, instead, or you could type your email body message at the command line and type CNTL_D (end-of-text) to signal its end.  For example:&lt;BR /&gt;&lt;BR /&gt;mailx -s "Testing..." myuser&lt;BR /&gt;This is line-1&lt;BR /&gt;and this is line-2&lt;BR /&gt;of a three-line message&lt;BR /&gt;&lt;CNTL_D&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/CNTL_D&gt;</description>
      <pubDate>Sun, 02 Oct 2005 17:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930761#M809195</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-10-02T17:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930762#M809196</link>
      <description>Try with this,&lt;BR /&gt;&lt;BR /&gt;subject="Testing..."&lt;BR /&gt;echo "Subject= ${subject}"&lt;BR /&gt;&lt;BR /&gt;mailx -s "$subject" root@localhost mail&lt;BR /&gt;&lt;BR /&gt;You will get that recent mail with Testing... as subject.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Mon, 03 Oct 2005 01:24:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930762#M809196</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-03T01:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930763#M809197</link>
      <description>Guys,&lt;BR /&gt;I getting an empty subject. The /dev/null is intentional to get an empty email but why the subject is empty?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 03 Oct 2005 07:38:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930763#M809197</guid>
      <dc:creator>Adnane_1</dc:creator>
      <dc:date>2005-10-03T07:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930764#M809198</link>
      <description>What you are getting with sendmail?&lt;BR /&gt;&lt;BR /&gt;# subject="check..."&lt;BR /&gt;# echo "Subject: ${subject}" | sendmail root@localhost&lt;BR /&gt;# mail&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Mon, 03 Oct 2005 07:50:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930764#M809198</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-03T07:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930765#M809201</link>
      <description>Take out the () in your mailx line.  It should read:&lt;BR /&gt;&lt;BR /&gt;mailx -s "$subject" myemail</description>
      <pubDate>Mon, 03 Oct 2005 08:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930765#M809201</guid>
      <dc:creator>Pat Lieberg</dc:creator>
      <dc:date>2005-10-03T08:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930766#M809202</link>
      <description>There seems to be a space missing between the -s and the "${subject}".&lt;BR /&gt;&lt;BR /&gt;I also get the feeling that Pat is right and the {} need to go too.</description>
      <pubDate>Mon, 03 Oct 2005 09:58:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930766#M809202</guid>
      <dc:creator>Gavin Clarke</dc:creator>
      <dc:date>2005-10-03T09:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930767#M809203</link>
      <description>Hi, Adnane, &lt;BR /&gt;&lt;BR /&gt;I think the second line is not necessary, simply use&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;subject="Testing ..."&lt;BR /&gt;mailx -s ${subject} who@myemail.com &amp;lt; /dev/null</description>
      <pubDate>Mon, 03 Oct 2005 10:20:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930767#M809203</guid>
      <dc:creator>Matthew_50</dc:creator>
      <dc:date>2005-10-03T10:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930768#M809204</link>
      <description>Hi Folks,&lt;BR /&gt;I tried your suggestions and Iâ  m getting the same problem (the sendmail as mention by HTH did not work for me, I think the setup for the DS entry is messing in the sendmail.cf file).&lt;BR /&gt;However I found out that when I submit the job my self I got the the email and the subject but when the scripts is submitted by the scheduler MAESTRO (scheduler program from IBM that runs under UNIX HP) I got the email but not the subject.&lt;BR /&gt;&lt;BR /&gt;Did anyone have an idea ? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks to all for your help.&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Oct 2005 07:13:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930768#M809204</guid>
      <dc:creator>Adnane_1</dc:creator>
      <dc:date>2005-10-04T07:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930769#M809205</link>
      <description>It sounds to me like the $subject is not being interpretted by the script and might be interpretted by the shell, which is evaluating to nothing and therefore, no subject.&lt;BR /&gt;&lt;BR /&gt;As mentioned in Matthew's post, do you have the #!/bin/ksh line at the top of your script?</description>
      <pubDate>Tue, 04 Oct 2005 07:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930769#M809205</guid>
      <dc:creator>Pat Lieberg</dc:creator>
      <dc:date>2005-10-04T07:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930770#M809206</link>
      <description>Hi Folks,&lt;BR /&gt;Yes Pat I do have #!/bin/ksh.&lt;BR /&gt;&lt;BR /&gt;Just to mention that my script is working perfectly in the DEV server, the problem occur on another UNIX HP server.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 04 Oct 2005 10:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930770#M809206</guid>
      <dc:creator>Adnane_1</dc:creator>
      <dc:date>2005-10-04T10:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930771#M809207</link>
      <description>I'm kind of at a loss what to try next, but you might look at the permissions of both the script and the /bin/ksh file.&lt;BR /&gt;&lt;BR /&gt;Sorry I wasn't more help.</description>
      <pubDate>Tue, 04 Oct 2005 10:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930771#M809207</guid>
      <dc:creator>Pat Lieberg</dc:creator>
      <dc:date>2005-10-04T10:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930772#M809208</link>
      <description>hmmm... I just did this:&lt;BR /&gt;&lt;BR /&gt;#subject=Testing...&lt;BR /&gt;#echo $subject&lt;BR /&gt;&lt;BR /&gt;..it echo'd properly..&lt;BR /&gt;&lt;BR /&gt;#mailx -s $subject rworkman@mydomain.com &amp;lt; /dev/null&lt;BR /&gt;&lt;BR /&gt;and then I&lt;BR /&gt;&lt;BR /&gt;#mail -s $subject rworkman@mydomain.com&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;...and they both went to my email reflecting a subject of ...   Testing...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yeppers...drop the {}&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Oct 2005 13:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930772#M809208</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2005-10-04T13:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930773#M809209</link>
      <description>Adnane-&lt;BR /&gt; Though I feel your question on the blank subject has been answered, I am attaching a list of different uses of mailx that are used in out shop. Should you still be having a problem, try an example from that attached.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Wed, 05 Oct 2005 16:56:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930773#M809209</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2005-10-05T16:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930774#M809210</link>
      <description>Thanks to all of you.&lt;BR /&gt;&lt;BR /&gt;I removed the /dev/null because it seems causing the problem in the subject.&lt;BR /&gt;&lt;BR /&gt;Now I'm using the mailx command :&lt;BR /&gt;&lt;BR /&gt;echo "$EMAIL_SUBJ" | mailx -s"$EMAIL_SUBJ" "$recipient"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Adnane.</description>
      <pubDate>Thu, 06 Oct 2005 08:05:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930774#M809210</guid>
      <dc:creator>Adnane_1</dc:creator>
      <dc:date>2005-10-06T08:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930775#M809211</link>
      <description>Removed the /dev/null&lt;BR /&gt;&lt;BR /&gt;and using the mailx command as:&lt;BR /&gt;&lt;BR /&gt;echo "$EMAIL_SUBJ" | mailx -s"$EMAIL_SUBJ" "$recipient"&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Oct 2005 08:06:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930775#M809211</guid>
      <dc:creator>Adnane_1</dc:creator>
      <dc:date>2005-10-06T08:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930776#M809212</link>
      <description>Which mailx version you are using. I have tried with /dev/null it is working for me. Ok. You are decided to leave /dev/null. ;) It is not needed at all.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Thu, 06 Oct 2005 08:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930776#M809212</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-06T08:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Empty subject when using mailx.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930777#M809213</link>
      <description>Adnane,&lt;BR /&gt;&lt;BR /&gt;I hope you are a new number. Try to assin points to those spent time with you. Hope you know the way to give points.&lt;BR /&gt;&lt;BR /&gt;thx.</description>
      <pubDate>Thu, 06 Oct 2005 08:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/empty-subject-when-using-mailx/m-p/4930777#M809213</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-06T08:09:35Z</dc:date>
    </item>
  </channel>
</rss>

