<?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: Script-mail hourly in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758390#M258941</link>
    <description>Hi,&lt;BR /&gt;create a command file and call from cron:&lt;BR /&gt;00 9-17 * * * /whatever/command&lt;BR /&gt;The last line of the command script should be something like:&lt;BR /&gt;mail -s"Hourly update `date +%H:%M" boss-email &amp;lt; sar_e&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 24 Mar 2006 07:18:54 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2006-03-24T07:18:54Z</dc:date>
    <item>
      <title>Script-mail hourly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758387#M258938</link>
      <description>Dear Friends,&lt;BR /&gt;&lt;BR /&gt;I am at one of the date centers with 5 servers of which I have to send the hourly date,uptime, sar 5 5,df -h, ./top -d 2 ---- following scripts output ------&lt;BR /&gt;&lt;BR /&gt;$  more script&lt;BR /&gt;echo DATE                                                                      &lt;BR /&gt;date &amp;gt;&amp;gt; sar_e&lt;BR /&gt;echo UPTIME &amp;gt;&amp;gt; sar_e&lt;BR /&gt;uptime &amp;gt;&amp;gt; sar_e&lt;BR /&gt;echo SAR &amp;gt;&amp;gt; sar_e&lt;BR /&gt;sar 5 5 &amp;gt;&amp;gt; sar_e&lt;BR /&gt;echo "Disk Utilization" &amp;gt;&amp;gt; sar_e&lt;BR /&gt;df -h &amp;gt;&amp;gt; sar_e&lt;BR /&gt;echo "Top"  &amp;gt;&amp;gt; sar_e&lt;BR /&gt;./top -d 2 &amp;gt;&amp;gt; sar_e&lt;BR /&gt;&lt;BR /&gt;           to my bosses. Can I config. for respective 5 server so that the mail is send by it self on hourly bases betwenn 9 am to 5 pm.&lt;BR /&gt;&lt;BR /&gt;Pl tell me how to config. the same&lt;BR /&gt;&lt;BR /&gt;thanks in adv.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;wish</description>
      <pubDate>Fri, 24 Mar 2006 07:08:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758387#M258938</guid>
      <dc:creator>wish_1</dc:creator>
      <dc:date>2006-03-24T07:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script-mail hourly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758388#M258939</link>
      <description>Schedule the script through cron. you can also enable ssh/remsh access to all servers and send just one email for all five servers.&lt;BR /&gt;&lt;BR /&gt;Cron cntry would look like follows.&lt;BR /&gt;&lt;BR /&gt;0 9,10,11,12,13,14,15,16,17 * * * "your_scipt"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Mar 2006 07:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758388#M258939</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-03-24T07:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script-mail hourly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758389#M258940</link>
      <description>It sounds like you simply need a crontab entry to invoke your script on an hourly basis between 9am and 5pm:&lt;BR /&gt;&lt;BR /&gt;00 9-17 * * 1-5 /your_script&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 24 Mar 2006 07:16:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758389#M258940</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-03-24T07:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script-mail hourly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758390#M258941</link>
      <description>Hi,&lt;BR /&gt;create a command file and call from cron:&lt;BR /&gt;00 9-17 * * * /whatever/command&lt;BR /&gt;The last line of the command script should be something like:&lt;BR /&gt;mail -s"Hourly update `date +%H:%M" boss-email &amp;lt; sar_e&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Mar 2006 07:18:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758390#M258941</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-24T07:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script-mail hourly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758391#M258942</link>
      <description>while using cron as suggested above, remember that script will be executed outside your environment. &lt;BR /&gt;You may have to update your script to initialize PATH (or other env variable) variable or use full absolute path for any command used in your script. &lt;BR /&gt;</description>
      <pubDate>Fri, 24 Mar 2006 07:20:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758391#M258942</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2006-03-24T07:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script-mail hourly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758392#M258943</link>
      <description>Hi Wish, &lt;BR /&gt;&lt;BR /&gt;You can use the following, &lt;BR /&gt;&lt;BR /&gt;Crontab syntax :-&lt;BR /&gt;A crontab file has five fields for specifying day , date and time  followed by the command to be run at that interval.&lt;BR /&gt;*     *   *   *    *  command to be executed&lt;BR /&gt;-     -    -    -    -&lt;BR /&gt;|     |     |     |     |&lt;BR /&gt;|     |     |     |     +----- day of week (0 - 6) (Sunday=0)&lt;BR /&gt;|     |     |     +------- month (1 - 12)&lt;BR /&gt;|     |     +--------- day of month (1 - 31)&lt;BR /&gt;|     +----------- hour (0 - 23)&lt;BR /&gt;+------------- min (0 - 59)&lt;BR /&gt;&lt;BR /&gt;00 9-17 * * * /&lt;PATH_TO_SCRIPT&gt;&lt;/PATH_TO_SCRIPT&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Fri, 24 Mar 2006 07:22:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-mail-hourly/m-p/3758392#M258943</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-03-24T07:22:03Z</dc:date>
    </item>
  </channel>
</rss>

