<?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: mailing a file using mailx in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904749#M752240</link>
    <description>first i guess you have sendmail configured and running. Alias root in /etc/mail/aliases to the group of people you want to send mail to.&lt;BR /&gt;Then to mail a file say fileA.&lt;BR /&gt;do&lt;BR /&gt;cat fileA|mailx -s "subject" root@hostname&lt;BR /&gt;&lt;BR /&gt;have this line in your scripts in cron and that will take care of it.&lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
    <pubDate>Fri, 14 Feb 2003 10:06:09 GMT</pubDate>
    <dc:creator>Rajeev  Shukla</dc:creator>
    <dc:date>2003-02-14T10:06:09Z</dc:date>
    <item>
      <title>mailing a file using mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904747#M752238</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;HP/UX 10.20&lt;BR /&gt;&lt;BR /&gt;Can Anyone give us a nice easy way of mailing out a file, or the contents of a file, from our HP server to root (this then is forwarded to a list of users)?  Ideally we would like to write a simple script that we could schedule, maybe via cron??&lt;BR /&gt;&lt;BR /&gt;Any suggestions please.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Fri, 14 Feb 2003 10:00:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904747#M752238</guid>
      <dc:creator>dave broome_1</dc:creator>
      <dc:date>2003-02-14T10:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: mailing a file using mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904748#M752239</link>
      <description>echo "hello" | /usr/bin/mailx -s "test" dave@hp.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 14 Feb 2003 10:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904748#M752239</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-02-14T10:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: mailing a file using mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904749#M752240</link>
      <description>first i guess you have sendmail configured and running. Alias root in /etc/mail/aliases to the group of people you want to send mail to.&lt;BR /&gt;Then to mail a file say fileA.&lt;BR /&gt;do&lt;BR /&gt;cat fileA|mailx -s "subject" root@hostname&lt;BR /&gt;&lt;BR /&gt;have this line in your scripts in cron and that will take care of it.&lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Fri, 14 Feb 2003 10:06:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904749#M752240</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-02-14T10:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: mailing a file using mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904750#M752241</link>
      <description>There are huge no .of postings.&lt;BR /&gt;&lt;BR /&gt;One of the best on this&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd81f36e69499d611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd81f36e69499d611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also the hp doc&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062922158" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062922158&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 14 Feb 2003 10:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904750#M752241</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-02-14T10:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: mailing a file using mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904751#M752242</link>
      <description>edit your /etc/sendmail.cf&lt;BR /&gt;which could also be located in /etc/mail/sendmail.cf&lt;BR /&gt;&lt;BR /&gt;uncomment the "DS" option and make sure that you also have the  fully qualified domain name of your smtp server after it.  i.e.:&lt;BR /&gt;DS  mailserver.mydomain.com&lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;&lt;BR /&gt;cat file | mailx -s "subject" -r return_address address_to_send_to&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;mailx -s "subj" -r return_address address_to_send_to &amp;lt; file</description>
      <pubDate>Fri, 14 Feb 2003 14:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904751#M752242</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-02-14T14:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: mailing a file using mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904752#M752243</link>
      <description>Hi,&lt;BR /&gt;What about of sendmail command? The sendmail command is more customizable, Just try this:&lt;BR /&gt;&lt;BR /&gt;1) When message is inside of body mesage: &lt;BR /&gt;&lt;BR /&gt;Set a variable that contain the body text, i.e: &lt;BR /&gt;BODY=`cat file_of_body_text` &lt;BR /&gt;echo "Importance: High\nSubject: Test mail\n\n$BODY"|sendmail user_box@domain &lt;BR /&gt;&lt;BR /&gt;This result in an email with High Priority Flag, Subject: "Test mail" and a body text. &lt;BR /&gt;&lt;BR /&gt;2) When message is an attached file: &lt;BR /&gt;&lt;BR /&gt;(echo "Importance: High\nSubject: Test mail\n\n$BODY";uuencode attached_file attached_file)|sendmail user_box@domain &lt;BR /&gt;&lt;BR /&gt;Note: attached_file must be twice! &lt;BR /&gt;This result in an email with High Priority Flag, Subject: "Test mail" with an attached file. Also you can use "C.C:" and "From:" fields.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Fri, 14 Feb 2003 15:28:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904752#M752243</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2003-02-14T15:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: mailing a file using mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904753#M752244</link>
      <description>#!/usr/bin/ksh&lt;BR /&gt;for ADDY in `cat /PATH/ADDYFILE`&lt;BR /&gt;do&lt;BR /&gt;     uuencode /PATH/FILE /PATH/FILE|mailx -s "subject" $ADDY&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This attaches the FILE as a MIME compliant attachment (for .csv's, .txt's and others) and sends it to every email address in ADDYFILE. Its quick, dirty and works like a charm.  We do it every day here.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 14 Feb 2003 16:10:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904753#M752244</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-02-14T16:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: mailing a file using mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904754#M752245</link>
      <description>Thanks for all of your help with this one.  I have successfully sent the mail out and scheduled a simple script to do the job.  Seems like the task for which the phrase "many ways to skin a cat" was written.  Is that an English phrase?</description>
      <pubDate>Mon, 17 Feb 2003 12:14:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904754#M752245</guid>
      <dc:creator>dave broome_1</dc:creator>
      <dc:date>2003-02-17T12:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: mailing a file using mailx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904755#M752246</link>
      <description>Acc to "World Wide Words"&lt;BR /&gt;&lt;BR /&gt;Charles Kingsley - Westward Ho! in 1855: &lt;BR /&gt;???there are more ways of killing a cat than choking it with cream???. &lt;BR /&gt;&lt;BR /&gt;Mark Twain, "A Connecticut Yankee in King Arthur???s Court", 1889&lt;BR /&gt;???she was wise, subtle, and knew more than one way to skin a cat???&lt;BR /&gt;&lt;BR /&gt;"Way down East; or, Portraitures of Yankee Life, Seba Smith of about 1854:&lt;BR /&gt;???This is a money digging world of ours; and, as it is said, ???there are more ways than one to skin a cat,??? so are there more ways than one of digging for money???&lt;BR /&gt;&lt;BR /&gt;First recorded in John Ray???s collection of English proverbs as far back as 1678.&lt;BR /&gt;Some writers have pointed to its use in the southern states of the US in reference to catfish</description>
      <pubDate>Mon, 17 Feb 2003 12:41:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-a-file-using-mailx/m-p/2904755#M752246</guid>
      <dc:creator>Mike Fisher_3</dc:creator>
      <dc:date>2003-02-17T12:41:35Z</dc:date>
    </item>
  </channel>
</rss>

