<?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: Sending a mail after script exec in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033493#M132991</link>
    <description>Oliver,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;LOGFILE=/tmp/mylog.$$&lt;BR /&gt;echo "done with this script" &amp;gt;&amp;gt; $LOGFILE&lt;BR /&gt;cat $LOGIFLE | mailx -m -s "Output of LOGFILE from `hostname` at `date`" root, xyz@my.domain.com&lt;BR /&gt;rm $LOGFILE&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Bernhard</description>
    <pubDate>Fri, 25 Jul 2003 12:14:36 GMT</pubDate>
    <dc:creator>Bernhard Mueller</dc:creator>
    <dc:date>2003-07-25T12:14:36Z</dc:date>
    <item>
      <title>Sending a mail after script exec</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033492#M132990</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;I want to send myself (on a remote maschine) a mail which contains the logfile which a script written by me produces. How can I do it? I played around with mail and mailx but I can not understand how to proceed.&lt;BR /&gt;&lt;BR /&gt;Thanks for help.&lt;BR /&gt;&lt;BR /&gt;Best Regards, Oliver</description>
      <pubDate>Fri, 25 Jul 2003 12:10:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033492#M132990</guid>
      <dc:creator>Oliver Schmitz</dc:creator>
      <dc:date>2003-07-25T12:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sending a mail after script exec</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033493#M132991</link>
      <description>Oliver,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;LOGFILE=/tmp/mylog.$$&lt;BR /&gt;echo "done with this script" &amp;gt;&amp;gt; $LOGFILE&lt;BR /&gt;cat $LOGIFLE | mailx -m -s "Output of LOGFILE from `hostname` at `date`" root, xyz@my.domain.com&lt;BR /&gt;rm $LOGFILE&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Bernhard</description>
      <pubDate>Fri, 25 Jul 2003 12:14:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033493#M132991</guid>
      <dc:creator>Bernhard Mueller</dc:creator>
      <dc:date>2003-07-25T12:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sending a mail after script exec</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033494#M132992</link>
      <description>will redirect do this?&lt;BR /&gt;&lt;BR /&gt;mailx me@.com &amp;lt; scriptlog</description>
      <pubDate>Fri, 25 Jul 2003 12:14:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033494#M132992</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-07-25T12:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sending a mail after script exec</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033495#M132993</link>
      <description>Hi Oliver:&lt;BR /&gt;&lt;BR /&gt;One way:&lt;BR /&gt;&lt;BR /&gt;# mailx -s "LogFile" root@server.xyz.com &amp;lt; /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 25 Jul 2003 12:15:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033495#M132993</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-07-25T12:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sending a mail after script exec</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033496#M132994</link>
      <description>Hi Oliver,&lt;BR /&gt;From one of our scripts ... (you'll have to fill in the variables ;-)&lt;BR /&gt;&lt;BR /&gt;( echo "$errorswarm ($swarmbackup)\n\n\n"; cat $ERRORCODES; echo " ";cat $LOGFILETEMP ) | &lt;BR /&gt;mailx -s "$errorswarm ($swarmbackup)" $MAILERRORS&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom Geudens</description>
      <pubDate>Fri, 25 Jul 2003 12:16:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033496#M132994</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2003-07-25T12:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sending a mail after script exec</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033497#M132995</link>
      <description>Hi Oliver,&lt;BR /&gt;&lt;BR /&gt;Here's an example&lt;BR /&gt;&lt;BR /&gt;cat logile | mailx -s "Your Subject Here" username@company.com&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 25 Jul 2003 12:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033497#M132995</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-07-25T12:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sending a mail after script exec</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033498#M132996</link>
      <description>Hello Oliver,&lt;BR /&gt;&lt;BR /&gt;This should do it for you.&lt;BR /&gt;&lt;BR /&gt;./your_script &amp;gt; /tmp/logfile; mailx -s "script_log" name@domain.net &amp;lt; /tmp/logfile&lt;BR /&gt;&lt;BR /&gt;Or you could just add the mailx command to the end of your script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom</description>
      <pubDate>Fri, 25 Jul 2003 12:18:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sending-a-mail-after-script-exec/m-p/3033498#M132996</guid>
      <dc:creator>Tom Ward_1</dc:creator>
      <dc:date>2003-07-25T12:18:31Z</dc:date>
    </item>
  </channel>
</rss>

