<?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 How to add mail functionality when pkg switches over? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-add-mail-functionality-when-pkg-switches-over/m-p/3563108#M58359</link>
    <description>I'm a newbie to ServiceGuard but has some basic working knowledge of SG packages/control scripts.&lt;BR /&gt;&lt;BR /&gt;Actually, I want to add functionality of sending e-mail to SysAdmin when a package switches over from one node to another.&lt;BR /&gt;&lt;BR /&gt;Any pointers for the same would be helpful? Do I need to add it in .mon script or pkgctl script?&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Karthik</description>
    <pubDate>Mon, 13 Jun 2005 10:02:47 GMT</pubDate>
    <dc:creator>Karthik Dathathri_1</dc:creator>
    <dc:date>2005-06-13T10:02:47Z</dc:date>
    <item>
      <title>How to add mail functionality when pkg switches over?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-add-mail-functionality-when-pkg-switches-over/m-p/3563108#M58359</link>
      <description>I'm a newbie to ServiceGuard but has some basic working knowledge of SG packages/control scripts.&lt;BR /&gt;&lt;BR /&gt;Actually, I want to add functionality of sending e-mail to SysAdmin when a package switches over from one node to another.&lt;BR /&gt;&lt;BR /&gt;Any pointers for the same would be helpful? Do I need to add it in .mon script or pkgctl script?&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Karthik</description>
      <pubDate>Mon, 13 Jun 2005 10:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-add-mail-functionality-when-pkg-switches-over/m-p/3563108#M58359</guid>
      <dc:creator>Karthik Dathathri_1</dc:creator>
      <dc:date>2005-06-13T10:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to add mail functionality when pkg switches over?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-add-mail-functionality-when-pkg-switches-over/m-p/3563109#M58360</link>
      <description>Hi Karthik,&lt;BR /&gt;&lt;BR /&gt;I should add the mailx command in the package control scripts. There's a section for custom commands. Write a nice script and put it in the ctl script.&lt;BR /&gt;&lt;BR /&gt;Maybe the next syntaxes help you a bit on the way:&lt;BR /&gt;&lt;BR /&gt;Mail No attachment, body only -&lt;BR /&gt; &lt;BR /&gt;mailx -m -s "Some Subject" somone@somewhere.com &amp;lt; file_for_email_body&lt;BR /&gt; &lt;BR /&gt;Mail with attachement, no body -&lt;BR /&gt; &lt;BR /&gt;ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com&lt;BR /&gt; &lt;BR /&gt;Mail with attachment and body -&lt;BR /&gt; &lt;BR /&gt;ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com &amp;lt; file_for_email_body&lt;BR /&gt; &lt;BR /&gt;Mail with carbon and blind carbon -&lt;BR /&gt; &lt;BR /&gt;mailx -m -s "Some Subject" somone@somewhere.com &amp;lt; file_for_email_body&lt;BR /&gt; &lt;BR /&gt;(the file_for_email_body should look like this - )&lt;BR /&gt;~c someone_to_cc@somewhere.com&lt;BR /&gt;~b someone_to_bc@somewhere.com&lt;BR /&gt;The remainder of this file is the text body of the email.&lt;BR /&gt; &lt;BR /&gt;Mail as another sender&lt;BR /&gt; &lt;BR /&gt;echo "Hello" | mailx -m -s "Greeting" -r Santa.Claus@north_pole.com someone@somewhere.com&lt;BR /&gt; &lt;BR /&gt;Mail with multiple attachments (The sentence "This is all you get." will appear as the body.)&lt;BR /&gt; &lt;BR /&gt;mailx -m -s "Hello" someone@somewhere.com &amp;lt;&amp;lt; END&lt;BR /&gt;`ux2dos /home/some_file | uuencode some_file.txt`&lt;BR /&gt;`ux2dos /home/some_other_file | uuencode some_other_file.txt`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheerio,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Mon, 13 Jun 2005 12:46:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-add-mail-functionality-when-pkg-switches-over/m-p/3563109#M58360</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-06-13T12:46:30Z</dc:date>
    </item>
  </channel>
</rss>

