<?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: Perl Help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3607207#M104200</link>
    <description>You can do this with localtime() to get the present time and check if it is 11PM to 6AM then, do not send mail. &lt;BR /&gt;&lt;BR /&gt;Put check loop as,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; my $hour=(localtime(time))[2];&lt;BR /&gt; if ( $hour =&amp;gt; 23 || $hour &amp;lt;= 6 ) &lt;BR /&gt; {&lt;BR /&gt;    # Donot send mail&lt;BR /&gt; } else&lt;BR /&gt; {&lt;BR /&gt;    # send mail&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;hth.</description>
    <pubDate>Fri, 19 Aug 2005 00:21:29 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-08-19T00:21:29Z</dc:date>
    <item>
      <title>Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3607206#M104199</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a Perl script which executes hourly and generates some reports from the log files.&lt;BR /&gt;&lt;BR /&gt;I send emails with the log data in case there are some errors in the logs.&lt;BR /&gt;&lt;BR /&gt;Now the need is that I should not send the emails from 11PM till 6 AM in the morning since it is the maintenance window of some of our downstream systems. &lt;BR /&gt;&lt;BR /&gt;The Perl script should get executed but the emails should not be send even if there are errors in the tiime between 11PM-6AM.&lt;BR /&gt;&lt;BR /&gt;Can anyone please tell me how should I accomplish the task&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Pat</description>
      <pubDate>Thu, 18 Aug 2005 17:46:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3607206#M104199</guid>
      <dc:creator>Pat Peter</dc:creator>
      <dc:date>2005-08-18T17:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3607207#M104200</link>
      <description>You can do this with localtime() to get the present time and check if it is 11PM to 6AM then, do not send mail. &lt;BR /&gt;&lt;BR /&gt;Put check loop as,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; my $hour=(localtime(time))[2];&lt;BR /&gt; if ( $hour =&amp;gt; 23 || $hour &amp;lt;= 6 ) &lt;BR /&gt; {&lt;BR /&gt;    # Donot send mail&lt;BR /&gt; } else&lt;BR /&gt; {&lt;BR /&gt;    # send mail&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Fri, 19 Aug 2005 00:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3607207#M104200</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-08-19T00:21:29Z</dc:date>
    </item>
  </channel>
</rss>

