<?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: receive scrpit result by mail in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273526#M334599</link>
    <description>what is the command for the first option (redirect)?&lt;BR /&gt;help me please</description>
    <pubDate>Mon, 22 Sep 2008 11:13:57 GMT</pubDate>
    <dc:creator>kacou</dc:creator>
    <dc:date>2008-09-22T11:13:57Z</dc:date>
    <item>
      <title>receive scrpit result by mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273524#M334597</link>
      <description>I have write a script for daily checking on my hpux server(B.11.23 U 9000/800). &lt;BR /&gt;1 - I want to receive the notification (result)  by mail.&lt;BR /&gt;2 – i want again to program it for every morning&lt;BR /&gt;&lt;BR /&gt;Help me please&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Sep 2008 11:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273524#M334597</guid>
      <dc:creator>kacou</dc:creator>
      <dc:date>2008-09-22T11:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: receive scrpit result by mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273525#M334598</link>
      <description>1. Redirect the script to send his output to a mail or include in script results to be collected in file and this file to be send via email.&lt;BR /&gt;2. Use cronjob to run the script. See man crontab.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Mon, 22 Sep 2008 11:11:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273525#M334598</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2008-09-22T11:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: receive scrpit result by mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273526#M334599</link>
      <description>what is the command for the first option (redirect)?&lt;BR /&gt;help me please</description>
      <pubDate>Mon, 22 Sep 2008 11:13:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273526#M334599</guid>
      <dc:creator>kacou</dc:creator>
      <dc:date>2008-09-22T11:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: receive scrpit result by mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273527#M334600</link>
      <description>Hi Kacou:&lt;BR /&gt;&lt;BR /&gt;#1: capture the return status of whatever you are running:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;RSLT=$?&lt;BR /&gt;mailx -s "Result of process X=${RSLT}" root &amp;lt; /dev/null&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;#2: Setup your script (which includes the above) as a crontask.  See the manpages for 'crontab'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Sep 2008 11:16:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273527#M334600</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-09-22T11:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: receive scrpit result by mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273528#M334601</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; what is the command for the first option (redirect)? help me please&lt;BR /&gt;&lt;BR /&gt;If you need to ask that, you need to begin with some basic shell programming.  This might be helpful:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90046/index.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90046/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 22 Sep 2008 11:18:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273528#M334601</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-09-22T11:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: receive scrpit result by mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273529#M334602</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/mailfile2" target="_blank"&gt;http://www.hpux.ws/mailfile2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This script which you MUST modify before using will send any report you want as an attachment.&lt;BR /&gt;&lt;BR /&gt;It can be modified to do many things.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 22 Sep 2008 11:26:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273529#M334602</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-09-22T11:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: receive scrpit result by mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273530#M334603</link>
      <description>&lt;BR /&gt;command to send mail(should be part of script)&lt;BR /&gt;&lt;BR /&gt;cat /tmp/scripts/report |mailx -s "Daily_Report_`hostname`" abcdsrrr@company.com &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;schedule script in cron to send mail at 8 0 clock&lt;BR /&gt;&lt;BR /&gt;0       8       *       *       *       /root/scripts/dailycheck/DailyReport.sh &amp;gt;/dev/null 2&amp;gt;&amp;amp;1</description>
      <pubDate>Mon, 22 Sep 2008 11:37:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273530#M334603</guid>
      <dc:creator>Sandeep_Chaudhary</dc:creator>
      <dc:date>2008-09-22T11:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: receive scrpit result by mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273531#M334604</link>
      <description>Why not combine the two options?&lt;BR /&gt;&lt;BR /&gt;0 8 * * * /root/scripts/dailycheck/DailyReport.sh 2&amp;gt;&amp;amp;1 | mailx -s "Daily report" me@mydomain.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Will run the script at 8:00 every morning and e-mail you the results.  This way you don't necessarily need to worry with making sure all command output is sent to a log file, and then e-mail the logfile to yourself.</description>
      <pubDate>Mon, 22 Sep 2008 12:22:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/receive-scrpit-result-by-mail/m-p/4273531#M334604</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-09-22T12:22:31Z</dc:date>
    </item>
  </channel>
</rss>

