<?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 want to write script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/want-to-write-script/m-p/4014160#M96396</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to write a script in unix. I want your support in forming the script. I am mentioning my aim for the script. &lt;BR /&gt;&lt;BR /&gt;we have a unix servers in which we have certain jobs which continiously monitor the server errors. we have set the prirorities for that such as high, medium, low for which the log files are getting created which we can differentiate.&lt;BR /&gt;now my requirement of script is such that it should scan the these high priority logs only and should mail those to the concerned guys on there mail-id's.it will be such like alerts for these guys.&lt;BR /&gt;&lt;BR /&gt;waiting for your solution,&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Amit Phadnis.&lt;BR /&gt;Now my requirement for the script is such tha</description>
    <pubDate>Wed, 06 Jun 2007 04:22:31 GMT</pubDate>
    <dc:creator>Amit Phadnis</dc:creator>
    <dc:date>2007-06-06T04:22:31Z</dc:date>
    <item>
      <title>want to write script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/want-to-write-script/m-p/4014160#M96396</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to write a script in unix. I want your support in forming the script. I am mentioning my aim for the script. &lt;BR /&gt;&lt;BR /&gt;we have a unix servers in which we have certain jobs which continiously monitor the server errors. we have set the prirorities for that such as high, medium, low for which the log files are getting created which we can differentiate.&lt;BR /&gt;now my requirement of script is such that it should scan the these high priority logs only and should mail those to the concerned guys on there mail-id's.it will be such like alerts for these guys.&lt;BR /&gt;&lt;BR /&gt;waiting for your solution,&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Amit Phadnis.&lt;BR /&gt;Now my requirement for the script is such tha</description>
      <pubDate>Wed, 06 Jun 2007 04:22:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/want-to-write-script/m-p/4014160#M96396</guid>
      <dc:creator>Amit Phadnis</dc:creator>
      <dc:date>2007-06-06T04:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: want to write script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/want-to-write-script/m-p/4014161#M96397</link>
      <description>You did not describe exactly how to identify the priority in the log messages.&lt;BR /&gt;&lt;BR /&gt;If the priority information is embedded in the log messages, for example, if the high priority messages always have "&lt;H&gt;" in them,&lt;BR /&gt;the solution is to use "grep" to scan for high priority messages and pipe the output to "mail" for sending. &lt;BR /&gt;&lt;BR /&gt;This is usually done with just one line of script, like this:&lt;BR /&gt;&lt;BR /&gt;grep "&lt;H&gt;" /one/or/more/log/files.txt | mail -s "mail subject" one.or.more@mail.addresses&lt;BR /&gt;&lt;BR /&gt;If there is no single identifier for high-priority messages, but you can list the kinds of messages that are high-priority, read "man grep" and pay attention to the -F option. &lt;BR /&gt;&lt;BR /&gt;By the way, this is is a *very, very simple* script. If you cannot do this much on your own and you must work as Unix sysadmin, go to some "Unix basic system administration" course ASAP.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/H&gt;&lt;/H&gt;</description>
      <pubDate>Wed, 06 Jun 2007 05:12:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/want-to-write-script/m-p/4014161#M96397</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-06-06T05:12:31Z</dc:date>
    </item>
  </channel>
</rss>

